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:Usersadministrator ode_moduleswebpack

  • 如果不是你自己安装的,请删除此文件夹C:Usersloicq ode_modules

  • 删除项目中的 node_modules

  • 重新 npm install

就可以了!

原文地址:https://www.cnblogs.com/shiazhen/p/13584330.html