Skip to content

Instantly share code, notes, and snippets.

@chakhsu
Last active May 4, 2017 13:27
Show Gist options
  • Save chakhsu/5a35cbff334239addb1bc97470d97c1c to your computer and use it in GitHub Desktop.
Save chakhsu/5a35cbff334239addb1bc97470d97c1c to your computer and use it in GitHub Desktop.
[Install Node.js in CentOS] #Node.js #CentOS

find the correct Node.js version (https://nodejs.org/en/download/)

eg:

download

wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz

install

# may be 'z' param no use
sudo tar --strip-components 1 -xzvf node-v* -C /usr/local

check

node -v
npm -v

update

npm install -g n
n stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment