Last active
August 29, 2015 14:22
-
-
Save victorono/11da4151299ce4c80ca2 to your computer and use it in GitHub Desktop.
Install nodejs in mac osx, run as root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run as root | |
rm -rf /usr/local/lib/node_modules | |
brew uninstall node | |
brew install node --without-npm | |
echo prefix=~/.node >> ~/.npmrc | |
curl -L https://www.npmjs.com/install.sh | sh | |
# edit ~/.bash_profile | |
export PATH="$HOME/.node/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment