A Brief But Accurate Documentation, BSD Linux And Programming

 Docker

Saturday, October 12, 2019

Install Node.js with NVM on Ubuntu

install npm on ubuntu 18.04 LTS

first, install the nvm


  • curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh -o install_nvm.sh

after that  check the installation script using nano:


nano install_nvm.sh

then, run the script using bash command:


bash install_nvm.sh

then access nvm for using nvm command

source ~/.profile

chek node version on nvm using command

nvm ls-remote


then choose node version which we want

nvm install 10.16.1



choose for default node version

nvm alias default 10.16.1


then use the default of node using command:


nvm use default

No comments:

Post a Comment

Back to top