Skip to content

Instantly share code, notes, and snippets.

@tatticoder
Created November 23, 2021 09:58
Show Gist options
  • Save tatticoder/bd347f7d5f525ba9059f58d9a0ff3bde to your computer and use it in GitHub Desktop.
Save tatticoder/bd347f7d5f525ba9059f58d9a0ff3bde to your computer and use it in GitHub Desktop.
Install node LTS on Linux using nvm

Download nvm

Download latest zip/tar file from here. Extract it and open the directory in a terminal.

Install and Check nvm

./install.sh
nvm -v

Install and check node, npm, npx

nvm install --lts
node -v
npm -v
npx -v

Delete obsolete nvm files (optional)

# Assuming executing in same directory as above
cd ..
rm -r nvm-0.39.0
rm nvm-0.39.0.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment