nvm is a version manager for node.js, It helps to easily switch between various versions of node very easily.
Follow the steps here.
- Download the nvm install script via
cURL:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash- Ensure that nvm was installed correctly with the following command. It should give you the version of the nvm installed.
nvm --version- Now install the latest
node.
nvm install node
nvm use node- To check if
nodewas installed properly, run:
node -vpnpm is a very fast, disk space efficient package manager. To install it globally run:
npm -g i pnpmThe
-gflag represents that this pnpm will be isntalled globally