Skip to content

Instantly share code, notes, and snippets.

@tatticoder
Created November 23, 2021 09:58
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