-
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
global binaries don't install on mac os sierra #1321
Comments
same problem. 0.16.x is buggy |
Same here: ➜ ~ yarn global ls
yarn global v0.16.0
warning No license field
info [email protected] has binaries:
- cat-names
✨ Done in 0.90s.
➜ ~ cat-names
zsh: command not found: cat-names But my
That looks really strange. I've installed Yarn via Btw, why doesn't Yarn use |
I had similar issues - I fixed them with |
Packages are not installed under
|
Same issue here (Mac OS X Yosemite 10.10.5, Node 7.1.0, , Yarn 0.16.1 installed via brew): $ yarn global bin
/usr/local/Cellar/node/7.1.0/bin This is a also a problem because the path is specific to the version of node used to install globally |
I encountered this trouble on another platform (Ubuntu), in which yarn global ad did not set things up correctly on the path. I see above that @teehemkay installed via brew. I encountered the problem what I had installed yarn using NPM, which is listed as one of the acceptable ways to install it in the documentation. When I installed using its curl-bash installer (wincing at the security, and working in an isolated testing environment), the problem evaporated and global paths worked the first time. It is possible that the problem in this issue is another variation, I would not find this surprising at all because there are so many different ways to install both yarn and node. |
Same problem here, it's very anoying :
so i can't add "/Users/david/.config/yarn/global/node_modules/" to my $PATH, cause the problem is this directory is a complete trash with all node modules dependancies. |
I solved installing [email protected] (the same version coming from the bash installer) via npm global. |
@gekorob thanks for the tips |
mac osx sierra I'm facing the same problem with "global add" like in the 0.17.2 (e.g. yarn global add angular-cli doesn't install ng command). |
Ok solved applying the correct path to my ~/.bash_profile as written in yarn documentation. |
I have similar issues on Ubuntu and Mac OS. Yarn was installed through apt-get on Ubuntu and Homebrew in Mac OS, and I am using
But the binaries are actually in The solutions here do not seem to fix the problem, except for adding Any suggestions? |
same here |
this works for me as of v0.19.1 |
not work for me
|
It wasn't working for me when using NVM because I had accidentally removed NVM_DIR from my bash_profile. adding this:
to ~/.bash_profile fixed my problem |
FYI, I had to add |
#630 (comment) worked for me as of Yarn 0.21.3 on Mac OS X 10.11.6. After I set the prefix, I removed and re-added packages and global access worked from then on (remember to re-open any terminal windows that might have your old PATH):
Can list installed packages with:
|
Hello. I use fish shell with OMF on macOS and solved this problem by adding to my ~/.config/fish/config.fish file |
I have similar problems on KDE Neon (Ubuntu 16.04.2). But I think I see what's going on. From the comment above by @curtdp I realized that But
This is a bug. Of course, we can all work around it by adding the directory path |
/usr/local/share/.config/yarn/global/package.json: But $ sudo yarn global ls: |
Duplicate: #2064 |
i use this commond |
@jay763190097 this issue is about OSX not Windows. |
@bestander we can close this because it is a duplicated. |
|
i know this is closed but in case others stumble, i saw a package just for this issue. then just run it to relink packages. refer to: https://www.npmjs.com/package/fix-yarn-global-packages |
But exactly binary file is here.
|
I have two users on my MacOS. When I added this to path:
I get error: |
I'm facing the same problem on KDE Neon (Ubuntu 16.04.2). Yarn version Having installed yarn through npm, to solving the problem just follow up the Yarn's guide that says: Since I'm using zsh, I put PATH command in .zshrc file. |
|
@c01nd01r I have a similar situation. |
Still the same here. |
If you're having issues like I did earlier, I changed into |
I had the following:
Even Worked: Didn't work: Then just |
Yarn was installed via apt on Ubuntu, I have to add this to
|
On windows in my case i just run
and set the returned path in Environment Variables on PATH, in my case was:
|
Do you want to request a feature or report a bug?
bug
What is the current behavior?
installing global packages does not appear to work.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
the binaries should be executable.
Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: