1、此时需要到C:\Users\pc\AppData\Roaming 根目录下,删除npm, npm-cache两 个文件
2、npm install -g npm

3、测试npm包已更新,可用。

相关文章: