Skip to content

Instantly share code, notes, and snippets.

@thinhdanggroup
Last active March 13, 2022 03:51
Show Gist options
  • Save thinhdanggroup/bca4f9609d7eada2716940ae31548d17 to your computer and use it in GitHub Desktop.
Save thinhdanggroup/bca4f9609d7eada2716940ae31548d17 to your computer and use it in GitHub Desktop.
Fastest way to install newest nodejs

Requirement

  1. Download lastest version in homepage

http://nodejs.org

Install

  1. Extract file

tar -xvf node-*.tar.xz

  1. Change node folder to node

mv node-* node

  1. Use command to copy file to enviroment

sudo cp -r node/{bin,include,lib,share} /usr/

  1. Verify

node -v

npm -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment