-
-
Notifications
You must be signed in to change notification settings - Fork 27k
npm ERR code elifecycle, npm ERR errno 1 , When running "npm start" #6950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've been having the exact same error when running OS: Windows 10 I've had no issues when running the same project on my MacOS computer, though. |
i'm also having the same error when running OS: Windows 8.1 |
i'm having the same problem when running npm start |
i'm having the same problem when running npm start |
okay, everybody, u have to check path variable, |
check my solution |
my solution and its working again!! |
Adding Some additional background for my particular situation: I'm running my project off an external drive that that is portable between different PCs. It has Node and VS Code also installed on the drive. In order to run Node scripts, I use a custom I don't know if that's a common dev environment, but it usually works pretty well. I haven't had any issues with my Gatsby project on the same drive (which is also React), or with CRA 2, so it looks like this may just be a CRA 3.0 issue? |
i added C:\Windows\System32 to my PATH and it doesn't work :( help plz !!!!!!!!! |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
Is this a bug report?
yes
Did you try recovering your dependencies?
C:\Users\Lini Eisha\WebstormProjects\untitled>npm --version
6.9.0
Which terms did you search for in User Guide?
_npm ERR! code ELIFECYCLE
npm ERR! errno 1_
Environment
**_C:\Users\Lini Eisha\WebstormProjects\untitled>npx create-react-app --info
Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Binaries:
Node: 12.0.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Not Found
Internet Explorer: Not Found
npmPackages:
react: ^16.8.6 => 16.8.6
react-dom: ^16.8.6 => 16.8.6
react-scripts: 3.0.0 => 3.0.0
npmGlobalPackages:
create-react-app: Not Found_**
Steps to Reproduce
I used 'create-react-app' command to create an app. The app was created but when i run 'npm start' it gives me the errors -> npm ERR! code ELIFECYCLE
npm ERR! errno 1
I tried to create apps using command prompt, Webstorm, IntelliJ, Visual Studio Code, Windows PowerShell but I get the same error when I run 'npm start' (in Webstorm I directly choose to create react app option app was built but same error when starting the npm)
I went through many things on the internet and tried to
reinstall npm and node
clean the npm cache
try to upgrade the react version
upgrade the npm etc. simply i tried everything was there
Expected Behavior
It should start the npm and create a complete react app
Actual Behavior
C:\Users\Lini Eisha\WebstormProjects\untitled>npm start
events.js:173
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:19)
at onErrorNT (internal/child_process.js:431:16)
at processTicksAndRejections (internal/process/task_queues.js:83:17)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
at onErrorNT (internal/child_process.js:431:16)
at processTicksAndRejections (internal/process/task_queues.js:83:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lini Eisha\AppData\Roaming\npm-cache_logs\2019-04-29T17_36_59_252Z-debug.log
Reproducible Demo
https://github.com/LiniEisha/Application-Framework-Lab-Work/tree/master/untitled
type (in cmd/windows powershell/ intellij/visual studio code)
npx create-react-app
npm start
or in webstorm
create new project --> react app , then type npm start on webstorm terminal
The text was updated successfully, but these errors were encountered: