Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# install node
curl -sL | sudo -E bash -
sudo apt-get install git nodejs --yes
# fix npm permissions:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo "export PATH=~/.npm-global/bin:\$PATH" >> ~/.profile
source ~/.profile
# update npm to latest version
npm install npm -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment