Created
April 30, 2017 08:12
-
-
Save xxjapp/f1469252ccb0552f544cffb110b7de25 to your computer and use it in GitHub Desktop.
install node.js (include npm) from binary on linux
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
wg https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz | |
unxz node-v6.10.2-linux-x64.tar.xz | |
tar -xf node-v6.10.2-linux-x64.tar | |
mkdir /usr/node | |
mv node-v6.10.2-linux-x64 /usr/node | |
ln -s /usr/node/node-v6.10.2-linux-x64 /usr/node/default | |
vi ~/.bash_profile | |
------------------------------------ | |
PATH=$PATH:$HOME/bin:/usr/node/default/bin | |
------------------------------------ | |
. ~/.bash_profile | |
node -v | |
npm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment