How To Install NVM on Ubuntu 20.04
Installing NVM on Ubuntu
sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
Installing Node using NVM
Install the latest version of node.js. Here node is the alias for the latest version.
To install a specific version of node:
Working with NVM
To list installed versions of the node for the current user.
To find the available node.js version for the installation.
To active version for the current shell only.
To find the default Node version set for the current user.
To run a Node script with the desired version of node.js.
| nvm exec 12.18.3 server.js |
Installing Gulp using NVM
| npm install –global gulp-cli |