首页 > 技术文章 > React报错:This is probably not a problem with npm. There is likely additional logging output above.

leoych 2022-04-16 21:14 原文

解决方案

删除node_modulespackage-lock.json,之后运行npm cache clear --force,重新安装模块npm install,另外要注意

npm 5.0版本之后,执行 npm install 的时候 就会自动生成package-lock.json文件
注意:cnpm install 的时候不会自动生成package-lock.json文件

推荐阅读