npm start throws an error code ELIFECYCLE
See original GitHub issueIs this a bug report?
no
Did you try recovering your dependencies?
yes i have tried it but it didn’t solve the error.
Which terms did you search for in User Guide?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xyz@0.1.0 start: react-scripts start
npm ERR! Exit status 1
Environment
Environment Info: (node:12916) UnhandledPromiseRejectionWarning: Error: The system cannot find the path specified.
at Function.e.exports.sync (C:\Users\jaysh\AppData\Roaming\npm-cache\_npx\12916\node_modules\create-react-app\node_modules\envinfo\dist\envinfo.js:1:7778)
at Object.copySync (C:\Users\jaysh\AppData\Roaming\npm-cache\_npx\12916\node_modules\create-react-app\node_modules\envinfo\dist\envinfo.js:1:104976)
at Object.t.writeSync.e [as writeSync] (C:\Users\jaysh\AppData\Roaming\npm-cache\_npx\12916\node_modules\create-react-app\node_modules\envinfo\dist\envinfo.js:1:123499)
at C:\Users\jaysh\AppData\Roaming\npm-cache\_npx\12916\node_modules\create-react-app\node_modules\envinfo\dist\envinfo.js:1:124274
at Promise.all.then.e (C:\Users\jaysh\AppData\Roaming\npm-cache\_npx\12916\node_modules\create-react-app\node_modules\envinfo\dist\envinfo.js:1:124289)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:12916) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:12916) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Steps to Reproduce
(Write your steps here:)
- npx create-react-app xyz
- cd xyz
- npm start
Expected Behavior
it should start the server on localhost://3000. (Write what you thought would happen.)
Actual Behavior
(Write what happened. Please add screenshots!)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xyz@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xyz@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top GitHub Comments
Steps to reproduce are confusing if you ask me. First, you create an app named “xyz”, then you
cd
to another directory.I am getting the same error was there a fix to this?