一、升级npm
npm install -g npm
二、升级node
1、查询node的安装目录
where node
2、在官网下载最新的安装包,直接覆盖安装即可。
https://nodejs.org/zh-cn/
windows下升级node&npm
原文:https://www.cnblogs.com/lanleiming/p/9040365.html