Created
March 10, 2018 07:25
-
-
Save hm0429/a1c55753a22cd918161e08dc971ec545 to your computer and use it in GitHub Desktop.
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod 755 install_node.sh
./install_node.sh