-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
System-wide NVM doesn't seem to work properly #570
Comments
Create a group Example (run as root): groupadd deploy
chgrp deploy -R /usr/local/nvm
chmod -R g+w /usr/local/nvm
usermod -aG deploy USERNAME |
Optionally, set the umask of chmod 2775 /usr/local/nvm # Yes, without -R |
Understood, I had assumed nvm worked by installing the binary in a system wide location, whilst still using ~/.nvm for local user usage. I'll opt for single user install instead as it's much easier, thanks both. FWIW, would a docs patch be justified to explain this a bit better? Even if it's just a link to this issue for now? |
Sure, I'm always happy to review PRs, especially for documentation, which is hard to objectively make intuitive for many varieties of people - so all feedback is welcome. |
@foxx Any interest in that docs patch? If not, I'll close this issue for now. |
@ljharb Sadly haven't got time to do this at the moment, feel free to close and I'll re-open when I get a chance, sorry! |
@koenpunt thanks for the suggestion of using a group to share nvm! You can source if groups $USER | grep -q '\bdeploy\b' -; then
. /usr/local/nvm/nvm.sh
fi Make sure to substitute |
As per #389 and #371, system-wide installs should be supported.
However I've done the following steps and it doesn't seem to work properly. Am I missing something here?
Install works fine
Using as root works fine
Using as user fails
Install as user fails
The text was updated successfully, but these errors were encountered: