-
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
Location of global bin doesn't match the doc #1194
Comments
+1 This behaviour is very strange. |
Well, theoretically, Personally, I think that:
See also #630 |
@victornoel I don't have a |
@marcandre it is normal that the Basically your problem is not a problem, it is the expected behaviour of |
How would find out where global packages are getting installed? (it's ~/.yarn-conf/global/node_modules/.bin like mentioned above) |
The latest version of yarn seems to have export PATH="$HOME/.yarn-config/global/node_modules/.bin:$PATH" |
As of 0.16.1 There's a problem with the design when doing However Ubuntu 14.04 and likely other distros set the permissions on So another user will get a "permission denied" error when trying to access the "globally installed" software, even if the user can access /usr/local/bin and if the binary itself is "executable by other". The design of storing global accessible software software "/root" seems fundamentally broken, since "/root" is often accessible only by root. I recommend that if the user installing things is |
This is blocking any system-wide usage of JS utilities installed using Yarn. |
So from what I can see the folder that yarn installs "global" utilities is I don't know if this right but we've just tested adding that to the path and it seems to work 👍 |
That's the "raw location" that symlinks to executables in packages are added to as a result of While using a system-wide "common location" might seem like a good idea, I think this is actually anti-pattern from what users expect when running In my opinion, I think Edit: |
This hit me too. My use case is installing global binaries in Dockerfile (under root) and then running yarn installed binaries under "normal" user. You get |
There are following workarounds:
AFAIK yarn config location is hardcoded to |
@Vanuan See #630 (specifically this comment) for a potential workaround. |
#3454 only "fixed" this issue for the OS X case, this issue should remain open because the issue was not addressed on other platforms. |
This sets the global prefix in a homebrew installation to a configurable package.json variable, which can be replaced by homebrew during formula installation with the actual value of HOMEBREW_PREFIX (similar to how installationMethod is already replaced there). This commit is a improved version of yarnpkg#3458 with added support for custom homebrew prefixes, which should address the issue from: yarnpkg#3458 (comment) Refs: yarnpkg#1194 Refs: Homebrew/homebrew-core#16083
This sets the global prefix in a homebrew installation to a configurable package.json variable, which can be replaced by homebrew during formula installation with the actual value of HOMEBREW_PREFIX (similar to how installationMethod is already replaced there). This commit is an improved version of yarnpkg#3458 with added support for custom homebrew prefixes, which should address the issue from: yarnpkg#3458 (comment) Refs: yarnpkg#1194 Refs: Homebrew/homebrew-core#16083
This sets the global prefix in a homebrew installation to a configurable package.json variable, which can be replaced by homebrew during formula installation with the actual value of HOMEBREW_PREFIX (similar to how installationMethod is already replaced there). This commit is an improved version of yarnpkg#3458 with added support for custom homebrew prefixes, which should address the issue from: yarnpkg#3458 (comment) Refs: yarnpkg#1194 Refs: Homebrew/homebrew-core#16083
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
What is the expected behavior?
Shouldn't
yarn global bin
output~/.yarn/bin
as per the doc?Please mention your node.js, yarn and operating system version.
Node v6.8.1
yarn v0.15.1
Os X 10.11.6
The text was updated successfully, but these errors were encountered: