1. Install script Linux

1.1. A Nodejs install script

install Node.js v16.x:
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y nodejs

1.2. Debian and Ubuntu based Linux distributions

1.3. Installing Node.js via package manager

The packages on this page are maintained and supported by their respective packagers, not the Node.js core team.

1.4. Installing Node.js (scripts on github)

2. Installing Node.js Windows

2.1. Alternatives

Using Chocolatey:

cinst nodejs
# or for full install with npm
cinst nodejs.install

Using Scoop:

scoop install nodejs

3. Installing Node.js macOS