react 一些常见的错误(There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally.)


1 运行npm run eject报错

报错的意思就是你没提交改动不能run eject

  • git add .

  • git commit -m "init"

就可以了!

2 运行npm run start报错(There might be a problem with the project dependency tree.It is likely not a bug in Create React App, but something you need to fix locally.)

  • 去这的路径找一下C:\Users\administrator\node_modules\webpack

  • 如果不是你自己安装的,请删除此文件夹C:\Users\loicq\node_modules

  • 删除项目中的 node_modules

  • 重新 npm install

就可以了!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM