Create-react-app: Creating an optimized production build not finish

Created on 27 Feb 2018  路  3Comments  路  Source: facebook/create-react-app

I run the command "npm run build" but it not finish.

Hours later and just showing "Creating an optimized production build..."

Any ideia how I can find and solve the problem?

Most helpful comment

Hi I have the same problem now. I'm deploying my CRA on openshift and it says that the build failed but when I look at the console it says that it's creating an optimised production build which never finishes creating and appears to be stuck. No critical or any error, only two npm warnings:
1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2) npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

Neither of these appaer to be critical though. Any idea on what it could be? I have the most recent version of CRA "react-scripts": "^2.1.1",

All 3 comments

hi! please follow the issue template https://github.com/facebook/create-react-app/blob/next/.github/ISSUE_TEMPLATE.md so we can know about your environment.

Did you get it working Rodrigo Angelo Valentini?

Hi I have the same problem now. I'm deploying my CRA on openshift and it says that the build failed but when I look at the console it says that it's creating an optimised production build which never finishes creating and appears to be stuck. No critical or any error, only two npm warnings:
1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2) npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

Neither of these appaer to be critical though. Any idea on what it could be? I have the most recent version of CRA "react-scripts": "^2.1.1",

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amuehl picture amuehl  路  79Comments

acskck picture acskck  路  213Comments

gaearon picture gaearon  路  86Comments

ericdfields picture ericdfields  路  78Comments

razvan-soare picture razvan-soare  路  161Comments