Starting the installation via terminal
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bashThe command above will clone the NVM repository from Github to the ~/.nvm directory:
Now that the nvm is installed you can install the latest available version of Node.js, by typing:
nvm install nodeOnce the installation is completed, verify it by printing the Node.js version:
node --version
npm --version