【nodeJs】A complete log of this run can be found in: xxxx

【报错】

克隆了公司远程仓库的vue2项目,然后在终端输入 npm install 时,出现如下报错:

A complete log of this run can be found in: C:\Users\admin\AppData\Local\npmcache\_logs\2023-08-16T03_04_02_917Z-debug-0.log

【最终解决方案】

node版本不匹配,卸载后重装与项目匹配的

【解决思路】

(1)依赖包或者模板有问题

网上查资料,大多说是 依赖包或者模板有问题,需要把node_modules这个文件夹删掉(我这边本身已经删除了的,但仍然报错)


原文链接:https://blog.csdn.net/aaqingying/article/details/95165113

(2)VsCode 权限不足(也是无法解决)

npm install报错 npm ERR! 的四种解决办法 - 陈亚的blog - 博客园 (cnblogs.com)https://www.cnblogs.com/chenyablog/p/15844195.html

(3) 有效方案:node版本不匹配,卸载后重装与项目匹配的

猜你喜欢

转载自blog.csdn.net/qq_54639969/article/details/132315894