lawrite.blogg.se

Install nvm on ubuntu
Install nvm on ubuntu






install nvm on ubuntu install nvm on ubuntu

To get the list of commands of NVM, enter following command nvm help But first, let’s go over the basics of using NVM. Now, you can go ahead and install any Node.js version as you like using ‘nvm install’ command. Next, logout and re-login or enter following command to avoid this logout-login step source ~/.profile Now, download and install the NVM script by entering following command curl -o- | bash So, let’s install Node.js on Ubuntu 18.04 using NVM.įirst remove the default Node.js, if installed from distro repositories, by entering following commands sudo apt remove nodejs sudo apt purge nodejs sudo apt autoremove Using NVM we can install latest versions of Node.js and can even manage multiple versions of Node.js easily. Usually default versions in Linux distro repositories are old ones.

install nvm on ubuntu

Here, we’ve used Ubuntu 18.04 but these instructions should work in other versions too. In this tutorial we’ll learn to install Node.js using NVM (Node Version Manager) on Ubuntu (or any Debian based Linux).








Install nvm on ubuntu