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

就可以了!

posted @ 2020-08-30 08:07  阿臻  阅读(1649)  评论(0编辑  收藏  举报