Skip to content

Instantly share code, notes, and snippets.

@victorono
Last active August 29, 2015 14:22
Show Gist options
  • Save victorono/11da4151299ce4c80ca2 to your computer and use it in GitHub Desktop.
Save victorono/11da4151299ce4c80ca2 to your computer and use it in GitHub Desktop.
Install nodejs in mac osx, run as root
# 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