There are several good ways to install Node.js on your
computer. You may wish to refer to
https://nodejs.org/en/download/package-manager.
When you become a skilled node developer, you may need to work
with several node versions more or less simultaneously. Then
you need several versions installed. In that case
I recommend maintaning
the software by nvm
, the Node Version Manager.
This entails installing that first.
For ease of updating node along the way use nvm
.
You may wish to check
nvm on github
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
brew install nvm
choco install nvm
Follow this in any operating system by the following command issued in a non administrator terminal. This command incidentally also gets the latest version, if used at a later date.
nvm install node
This command will install (or update) Node.js and npm the Node Package Manager. If you one day may decide to develop node software as another user, just repeat this last command from that users home directory.