NVM, Node, and Gulp installation

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.

nvm install node

To install a specific version of node:

nvm install 12.18.3 

Working with NVM

To list installed versions of the node for the current user.

nvm ls

To find the available node.js version for the installation.

nvm ls-remote

To active version for the current shell only.

nvm use 12.18.3

To find the default Node version set for the current user.

nvm run default –version

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

Leave a comment

Your email address will not be published. Required fields are marked *