Skip to content

Instantly share code, notes, and snippets.

@xxjapp
Created April 30, 2017 08:12
Show Gist options
  • Save xxjapp/f1469252ccb0552f544cffb110b7de25 to your computer and use it in GitHub Desktop.
Save xxjapp/f1469252ccb0552f544cffb110b7de25 to your computer and use it in GitHub Desktop.
install node.js (include npm) from binary on linux
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