Aliyun always install NPM 3.5.2 Solutions

Since the default command Ali cloud version 8.x is installed Node
lead versions are 3.5.2 NPM has been installed, the upgrade is not life and death go up

Finally manually install the specified version to solve

wget -qO- https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

Install npm

apt-get install nodejs

View npm -v

root@iZs9kgd0x5xmhaZ:/# npm -v  
6.9.0             

Guess you like

Origin www.cnblogs.com/zhaozhengyan/p/aliyun-install-npm-352.html