Using NodeSource

Refer to the NodeSource documentation for more information on the available versions.

Node.js v14.x:

1
2
3
4
5
6
7
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

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

Upgrade npm

1
npm install -g npm

Comments

⬆︎TOP