Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Last active October 25, 2018 05:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save satomacoto/52c6f754dfcdaea697d5083e7a40a239 to your computer and use it in GitHub Desktop.
Install node and npm with n
# install node & npm
apt-get install -y nodejs npm apt-transport-https
npm cache clean
npm install n -g
n stable
ln -sf /usr/local/bin/node /usr/bin/node
ln -sf /usr/local/bin/npm /usr/bin/npm
sudo apt-get install -y nodejs npm
sudo npm cache clean
sudo npm install n -g
sudo n stable
exec $SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment