npm升级最新版本 npm install -g npm npm降级 npm install npm@6.14 -g 执行后npm -v查看版本是否正确,mac 没成功可试下sudo npm install npm@6.14 -g