Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cat > install_node.sh <<EOF
#!/bin/sh
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
EOF
@hm0429

This comment has been minimized.

Copy link
Owner Author

hm0429 commented Mar 10, 2018

chmod 755 install_node.sh
./install_node.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.