错误:
![](https://img-blog.csdnimg.cn/20210201211217140.png)
可能原因:
可能是C:\Users\Administrator(users)目录下的.npmrc里的配置问题
把.npmrc文件改成
prefix=C:\node.js\node_global
cache=C:\node.js\node_cache
registry=http://registry.cnpmjs.org/
![](https://img-blog.csdnimg.cn/20210201211409231.png)
谢谢阅读,无误点赞,有误还望评论区指正。
错误:
可能原因:
可能是C:\Users\Administrator(users)目录下的.npmrc里的配置问题
把.npmrc文件改成
prefix=C:\node.js\node_global
cache=C:\node.js\node_cache
registry=http://registry.cnpmjs.org/