-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
Why sudo is bad for user cli tools and how to work around permission errors #10
Comments
If it helps, here's how I globally install NPM packages without using export NPM_CONFIG_PREFIX='~/.npm-packages'
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
export MANPATH="$NPM_CONFIG_PREFIX/share/man:$MANPATH"
export NODE_PATH="$NPM_CONFIG_PREFIX/lib/node_modules:$NODE_PATH" |
Thanks.
|
This is also a common issue for the default Ruby on OS X. (By default, you need |
Same with Ruby on Ubuntu. |
Works great! |
Why not install Nodejs with something like |
Need to have this guide so I can link to it from sudo-block.
Or as @kevva said it:
The text was updated successfully, but these errors were encountered: