ubuntu 服务器上安装pm2时报错
npm install pm2 -g
解决:
sudo apt install nodejs
sudo apt install npm
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs
ubuntu 服务器上安装pm2时报错
npm install pm2 -g
解决:
sudo apt install nodejs
sudo apt install npm
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs