-
Notifications
You must be signed in to change notification settings - Fork 216
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
Suggestion: volta install node
should error if node
is being shadowed by another binary in PATH
#1268
Comments
if you agree that this would be a worthwhile UX improvement i'm interested in implementing |
Hi @untitaker, thanks for the suggestion! I really like that idea since it neatly avoids showing unnecessary information to a user who explicitly shadowed Node: If they're running We'd absolutely welcome a contribution that adds a warning when installing Node if the PATH has a different version of Node ahead of Volta. Let me know if you need any pointers around the code or anything to help! |
volta setup
takes care of volta being at the front of the path. However:.profile
Today I found out the answer to question 2.
PATH
contained additional binaries by other "shim" programs, and as a result volta's shimnode
was shadowed by anothernode
I believe
volta
, on every run ofvolta install
, should check$PATH
and ensure that the just-installed command actually resolves to the shim binary. Thewhich
crate can be used for this. If that isn't the case,volta
should at least emit a warning, or even error. From a user POV, nothing was installed.The text was updated successfully, but these errors were encountered: