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.

npm start throws an error code ELIFECYCLE

See original GitHub issue

Is 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:)

  1. npx create-react-app xyz
  2. cd xyz
  3. 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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
miraagecommented, Oct 12, 2018

Steps to reproduce are confusing if you ask me. First, you create an app named “xyz”, then you cd to another directory.

0reactions
DigitialRambocommented, Jan 6, 2019

I am getting the same error was there a fix to this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm error "npm ERR! code ELIFECYCLE"
I was getting this npm ERR! code ELIFECYCLE error while running a build. Clearing the cache and removing the package-lock.json files did not...
Read more >
How to solve npm error npm ERR! code ELIFECYCLE
In order to solve the “npm ERR! code ELIFECYCLE ” error which is a very common type of error that occurs during npm...
Read more >
How to fix the npm ERR! code ELIFECYCLE error
First, clean the npm cache by using the following command. · Delete the node_modules folder and package-lock. · Now, re-install the npm packages ......
Read more >
npm start throws ELIFECYCLE error with error code ...
npm start throws ELIFECYCLE error with error code 1 when run in macOs Mojave but runs perfectly fine in windows 10 #5980.
Read more >
How to solve throwing npm error “npm ERR! code ...
How to solve throwing npm error “npm ERR! code ELIFECYCLE” “npm ERR! errno 2” “npm ERR! @ dev: `npm run development`”.
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