yarn global bin doesn't output a valid path on macOS

Created on 12 Oct 2016  路  1Comment  路  Source: yarnpkg/yarn

Do you want to request a _feature_ or report a _bug_?

bug

What is the current behavior?

$ yarn global bin | cat -v
^[[2K^[[1G/usr/local/Cellar/node/6.3.1/bin

What is the expected behavior?

$ yarn global bin | cat -v
/usr/local/Cellar/node/6.3.1/bin

Please mention your node.js, yarn and operating system version.

$ yarn --version
0.15.1
$ node --version
v6.3.1
$ sw_vers -productVersion
10.12

Also reproduced in https://github.com/yarnpkg/yarn/issues/648#issuecomment-253174261

Most helpful comment

In the meanwhile you can do this:

export PATH="$(yarn global bin | grep -o '/.*'):$PATH"

>All comments

In the meanwhile you can do this:

export PATH="$(yarn global bin | grep -o '/.*'):$PATH"
Was this page helpful?
0 / 5 - 0 ratings