Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
kitsunde opened this issue Oct 12, 2016 · 1 comment
Closed

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

kitsunde opened this issue Oct 12, 2016 · 1 comment

Comments

@kitsunde
Copy link

kitsunde commented Oct 12, 2016

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 #648 (comment)

@kitsunde
Copy link
Author

kitsunde commented Oct 12, 2016

In the meanwhile you can do this:

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant