Skip to content

Instantly share code, notes, and snippets.

@saleh-old
Last active April 3, 2019 07:14
Show Gist options
  • Save saleh-old/e9d920ec566238b6a9258ab0b17738df to your computer and use it in GitHub Desktop.
Save saleh-old/e9d920ec566238b6a9258ab0b17738df to your computer and use it in GitHub Desktop.
commands to install latest LTS node on ubuntu 18.04
# update ubuntu
sudo apt update
# install nvm
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile
# install node + npm
nvm install --lts
# check
node -v
npm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment