Skip to content

npm run build failed with error code ELIFECYCLE #5705

Closed

Description

@DanielHosseini

Is this a bug report?

Yes

Did you try recovering your dependencies?

Yes.
Removed node_modules, package-lock.json.
Then npm install - npm@latest and npm install

Environment

node -v: v8.11.4
npm -v: 5.6.0

Windows 7

Have you read the Troubleshooting section and searched the User Guide?

react-scripts build, exit status code 1, ELIFECYCLE

Steps to Reproduce

(Write your steps here:)

  1. Cd to the project folder
  2. run the following command: npm run build

Expected Behavior

Successful Build.

Actual Behavior

Failed to compile with error code ELIFECYCLE, Exit Status 1
Log File
https://gist.github.com/DanielHosseini/7dfdfee27f2cf2defc88589b39a770cc

package.json
https://gist.github.com/DanielHosseini/0fef657b93500de51555aa8d7d60fb29

stackoverflow post
https://stackoverflow.com/questions/53120536/unable-to-build-react-app-using-npm-run-build-exit-status-1

Activity

  1. DanielHosseini commented on Nov 5, 2018

    @DanielHosseini
    Author

    The issue is resolved.
    react-scripts was missing in the package.json.
    Please have a look in the stackoverflow post on how it was fixed.

    Thanks!

  2. locked and limited conversation to collaborators on Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions