每次create-react-app完成以后启动之前我还去创建一个.env
来源:2-2 【环境搭建】开始我们的第一个React项目

慕码人3286404
2021-03-30
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.
写回答
1回答
-
阿莱克斯刘
2021-05-18
请打开你的 package.json,替换 "react-scripts": "xxxxxxx" 为 "react-scripts": "1.1.4", 然后npm install,最后 npm start。问题应该就能解决。
我找到github有与你同样的问题,可以参考一下:
https://github.com/facebook/create-react-app/issues/5972
00
相似问题
react 19
回答 3