-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn link doesn't link binaries globally #891
Comments
As an additional note - this isn't due to |
Just to add more notes, this also happens on Linux.
|
Same issue here:
does not work. However,
works correctly. |
Please use the 👍 reaction instead of commenting same problem. It makes it much easier to see at a glance how many people are affected, and keeps the thread smaller |
yarn global bin indicate wrong path
the default npm will create a soft link to |
Duplicate of #1585 |
Closing because #1585 was closed. |
@acburdine The way you guys close issues is pretty hostile. That issue was closed without a fix, and then you close this issue because the other was closed. This behavior is still present, this issue should remain open until there is some kind of resolution. |
@tyrsius There was a fix for the other issue, if you look it you can see that it was closed by a commit which was released in 0.19.0. I'm not a contributor to Yarn really, I opened the issue because I discovered the behavior, and while technically the other issue was a duplicate of my issue, I don't really care as long as the behavior was fixed. It was fixed, and thus I closed my own issue 😄 |
The issue is still reproduced with yarn v0.19.1 on Ubuntu 16.04. |
@evenfrost Does the npm global path work for you ( yarn config set prefix $(npm config get prefix) If you use nvm, you'd want that command in your bash profile. ( |
This bug still exists, above workaround does not work for me. |
I agree this issue needs to be re-opened. |
This still doesn't work for me unfortunately.
yarn version 1.13.0 |
yarn |
yarn |
@rummik I don't think that commit actually made yarn link work globally:
|
This does work (at least on Linux), just use |
Yep, it works. Typically, you should have this line in your export PATH="$PATH:`yarn global bin`" (for those who use NVM, add this line AFTER nvm setup ;) ) |
Do you want to request a feature or report a bug?
Bug/NPM compatibility issue
What is the current behavior?
Running
yarn link
inside a project does not link binaries globally. In comparison, npm link does.If the current behavior is a bug, please provide the steps to reproduce.
Project in question: https://github.com/TryGhost/Ghost-CLI
cd ghost-cli
yarn
yarn link
ghost --version
What is the expected behavior?
The expected behavior is for yarn to link the binaries globally for testing purposes.
For comparison, the npm steps:
npm install
npm link
ghost --version
1.0.0-alpha.3
Please mention your node.js, yarn and operating system version.
yarn --version
: 0.15.1The text was updated successfully, but these errors were encountered: