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

Most upvoted comments

Add .env with “SKIP_PREFLIGHT_CHECK=true” than npm start

Omg it really worked. Thanks a lot.

Add .env with “SKIP_PREFLIGHT_CHECK=true” than npm start

I am able to run it now using an old version of react-scripts (the current version was 3.4.0) npm install react-scripts@2.1.8 will it cause any problems in the future?

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.