Cannot start react app after init
See original GitHub issueI 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:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Wow! This helped me to fix problem. Huge thanks to you!
This problem is only present with react-scripts@3.0.0, downgrading to react-scripts@2.1.8 resolved the issue.