Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Created November 18, 2019 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxfemale/abaa234dc759958d94757f22dd77e1d2 to your computer and use it in GitHub Desktop.
Save linuxfemale/abaa234dc759958d94757f22dd77e1d2 to your computer and use it in GitHub Desktop.
Node.js Installing Using NVM on Ubuntu 18.04LTS
##Install Node.js and NPM from Ubuntu official repository
sudo apt update
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
nodejs --version
sudo apt install npm
npm --version
To download the nvm installation script from the project’s GitHub page,
https://github.com/nvm-sh/nvm#installation-and-update
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
nano install_nvm.sh
bash install_nvm.sh
source ~/.profile
nvm ls-remote
nvm install 8.11.1 (install Latest LTS)
nvm use 8.11.1
node -v
nvm ls
nvm alias default 8.11.1
nvm use default
nvm current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment