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
就可以了!