-
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
Path *bug* using wrong node binary. #5789
Comments
I believe this should be a serious issue, ESPECIALLY for people managing multiple projects running different versions of node. |
I'm pretty sure it's going to use whatever According to the npm run-script docs it looks like npm will automatically do what that flag does if |
Seems to me like ‘--scripts-prepend-node-path‘ should be enabled by default, why would a user manually use a specific version of node only for it to search through your path for whatever version it finds first???? |
Marking this issue as a feature-request to change the behavior of the
so if the node executable that was used to run yarn is not found in the current path, we should treat it as if this flag is enabled and add the path. |
I thought it was a bug; @rally25rs I agree, this is a feature request. I hope this goes through promptly so we can close this request. I'm considering making a gui for yarn with electron, that enables users to select versions of dependencies based upon github release tags, maybe even some fork awareness. |
I think @arcanis did something like this lately or war talking about it. |
Yep, I have a WIP that adds both |
In the meantime, the recommended workaround is to use |
This seems to be a bug in yarn; yarn run ___ doesn't find the binary because something in yarn isn't setting $PATH properly. refs yarnpkg/yarn#5789
Do you have a branch url for the WIP? |
It's part of the Plug'n'Play PR: #6382 - I'll wait a few days before merging it, but it should be released with the 1.10 |
What is the current behavior?
Install command fails; won't run without sudo access, using wrong path to get node binary.
If the current behavior is a bug, please provide the steps to reproduce.
My friend didn't have node installed on his system so I sent him the commands to compile it, on my system I believe it's using the wrong version of node to install it wouldn't work on his system(vanilla ubuntu 16.04) without first running the commented out link command.
What is the expected behavior?
Should not need sudo access to
/usr/bin/node
Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: