升级node.js版本
1.到官网下载一个适合的二进制版本,覆盖到目录下;(注:覆盖后,npm install 一直报错 Cannot read property 'resolve' of undefined)
2.直接卸载 node.js;
(1)npm cache clean --force;
(2)控制面板卸载 node.js;
(3)删除以下地址文件:
C:\Program Files (x86)\Nodejs
C:\Program Files\Nodejs
C:\Users\{User}\AppData\Roaming\npm
(or%appdata%\npm
)C:\Users\{User}\AppData\Roaming\npm-cache
(or%appdata%\npm-cache
)C:\Users\{User}\.npmrc
(and possibly check for that without the.
prefix too)C:\Users\{User}\AppData\Local\Temp\npm-*