create-react-app: Error after npm start
After doing npx create-react-app my-app, it gives me an error when starting the server on my macBook. However, it’s working perfectly fine on my pc.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! omar@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the omar@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19
Omg it really worked. Thanks a lot.
Add .env with “SKIP_PREFLIGHT_CHECK=true” than npm start
There maybe some security vulnerabilities that may arose in future. but is should be fine as long as you are not using this for production.