Installing Nvm Node Npm
Debian doesn’t use sudo
. Make sure to run everything as root user with su
.
Step 1 - Installing Prerequisites⌗
Let’s first install curl
.
Step 2 - Install NVM⌗
We are pulling nvm from the git repository.
To apply the changes, either log out and back in or source your ~/.profile
.
Step 3 - Installing Node using NVM⌗
Installing the latest NodeJS:
You can choose the version of Node that you would like. Here is the list of all available versions:
Step 4 - Optionals / Cool Features⌗
It is surprisingly easy to switch Node versions on the fly!
You can run individual scripts as the desired version:
To set a Node version:
To set a new default version:
Read other posts