Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install node without sudo
# Remove old sudoy node
# take ownership of the folders that npm/node use
# please don't do this if you don't know what it does!
sudo mkdir -p /usr/local/{share/man,bin,lib/node,include/node,/lib/node_modules}
sudo chown -R $USER /usr/local/{share/man,bin,lib/node,include/node,/lib/node_modules}
# now just install node from the website...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment