菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
259
0

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.)

原创
05/13 14:22
阅读数 56349

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

就可以了!

发表评论

0/200
259 点赞
0 评论
收藏