Last active
October 25, 2018 05:37
-
-
Save satomacoto/52c6f754dfcdaea697d5083e7a40a239 to your computer and use it in GitHub Desktop.
Install node and npm with n
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
# 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 |
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
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