Skip to content

npm ERR code elifecycle, npm ERR errno 1 , When running "npm start" #6950

@LiniEisha

Description

@LiniEisha

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

  1. 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

  2. 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)

  3. 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

untitled@0.1.0 start C:\Users\Lini Eisha\WebstormProjects\untitled
react-scripts start
Starting the development server...

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! untitled@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the untitled@0.1.0 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions