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