Created
November 27, 2015 23:42
-
-
Save Alelak/e1a41d7b2f0eb0208d41 to your computer and use it in GitHub Desktop.
Install node on debian
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
#!/bin/sh | |
wget https://nodejs.org/dist/v5.1.0/node-v5.1.0-linux-x64.tar.gz | |
tar -xvf node-v5.1.0-linux-x64.tar.gz | |
sudo mkdir -p /opt/node | |
sudo mv node-v5.1.0-linux-x64/* /opt/node/ | |
sudo update-alternatives --install "/usr/bin/node" "node" "/opt/node/bin/node" 1 | |
sudo update-alternatives --install "/usr/bin/npm" "npm" "/opt/node/bin/npm" 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment