Created
November 18, 2019 14:32
-
-
Save linuxfemale/abaa234dc759958d94757f22dd77e1d2 to your computer and use it in GitHub Desktop.
Node.js Installing Using NVM on Ubuntu 18.04LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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