一、升级npm

npm install -g npm

二、升级node

1、查询node的安装目录

where node

2、在官网下载最新的安装包,直接覆盖安装即可。

https://nodejs.org/zh-cn/

相关文章: