Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
cat > <<EOF
sudo apt-get install -y nodejs npm
sudo npm cache clean
sudo npm install n -g
sudo n stable
sudo ln -sf /usr/local/bin/node /usr/bin/node
sudo ln -sf /usr/local/bin/npm /usr/bin/npm
sudo apt-get purge -y nodejs npm
Copy link

hm0429 commented Mar 10, 2018

chmod 755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment