Ubuntu 20.04 So installieren Sie NPM
sudo apt update
sudo apt install nodejs npm
slaff
sudo apt update
sudo apt install nodejs npm
sudo apt update
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
cat /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_14.x focal main
deb-src https://deb.nodesource.com/node_14.x focal main
sudo apt -y install nodejs
node -v
v14.18.2
Install Nodejs using NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
nvm install v14.17.1
$ sudo apt install nodejs
nodejs install