question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start react app after init

See original GitHub issue

I had ran these 2 line as usual but I cannot start my new react app. The funny thing is I can still run my old react app. Can somebody help me with this

npm cache clean --force npx create-react-app chart

This the output after I ran npm start ` events.js:174 throw er; // Unhandled ‘error’ event ^

Error: spawn powershell ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19) Emitted ‘error’ event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chart@0.1.0 start: react-scripts start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chart@0.1.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
H3deecommented, Sep 8, 2020

This problem is only present with react-scripts@3.0.0, downgrading to react-scripts@2.1.8 resolved the issue.

create-react-app my-app
cd my-app
npm install react-scripts@2.1.8
npm start

Wow! This helped me to fix problem. Huge thanks to you!

1reaction
rutikwankhadecommented, Sep 8, 2020

This problem is only present with react-scripts@3.0.0, downgrading to react-scripts@2.1.8 resolved the issue.

create-react-app my-app
cd my-app
npm install react-scripts@2.1.8
npm start
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create React App not working
1. update the npm version (npm install npm@latest -g) · 2. clear the cache (npm cache clean --force) · 3. create the react...
Read more >
What To Do if create-react-app Doesn't Work
1. npm uninstall -g create-react-app · 2. yarn global remove create-react-app · 3. npm update npx · 4. npm install npm@latest -g ·...
Read more >
NPX Create React APP Not Working - YouTube
To create a new React App, we use npx command with create - react - app and then project name. It should create...
Read more >
create-react-app not working ⚠️ error solved - YouTube
In this video, we will solve the error in reactjs that We no longer support global installation of Create React App. ✔️ create...
Read more >
Create a New React App
Create React App doesn't handle backend logic or databases; it just creates a frontend build ... The following toolchains offer more flexibility and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found