Skip to content

Instantly share code, notes, and snippets.

@lc512k
Forked from isaacs/node-and-npm-in-30-seconds.sh
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lc512k/ce117af4a14ebf3f64bd to your computer and use it in GitHub Desktop.
Save lc512k/ce117af4a14ebf3f64bd to your computer and use it in GitHub Desktop.
Install node without sudo
# Remove old sudoy node
# http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x
# 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