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
node
was installed properly, run:
node -v
pnpm
is a very fast, disk space efficient package manager. To install it globally run:
npm -g i pnpm
The
-g
flag represents that this pnpm will be isntalled globally