Install node with Ubuntu package manager
Source to install for Ubuntu only for one user: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04
...
Verify you’ve installed the required version:
Code Block |
---|
node -v |
Install node with Node Version Manager
Another way to install Node.js that is quite flexible is to use nvm, or Node Version Manager. This software allows you to install and maintain several different independent versions of Node.js and their associated Node packages.
Code Block |
---|
nvm install node
nvm install 20.10.0
nvm use 20.10.0
|
Verify you’ve installed the required version
...