From 4fdbb215c90a0d0146092a36aab46cd440ee8dfc Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 5 Dec 2016 21:19:21 +0000 Subject: [PATCH 1/2] Add "npm run build silently fails" to Troubleshooting --- packages/react-scripts/template/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 79105db05c5..831210697a8 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -55,6 +55,9 @@ You can find the most recent version of this guide [here](https://github.com/fac - [S3 and CloudFront](#s3-and-cloudfront) - [Surge](#surge) - [Troubleshooting](#troubleshooting) + - [`npm test` hangs on macOS Sierra](#npm-test-hangs-on-macos-sierra) + - [`npm run build` silently fails](#npm-run-build-silently-fails) + - [Something Missing?](#something-missing) ## Updating to New Releases @@ -1118,6 +1121,10 @@ If this still doesn't help, try running `launchctl unload -F ~/Library/LaunchAge There are also reports that *uninstalling* Watchman fixes the issue. So if nothing else helps, remove it from your system and try again. +### `npm run build` silently fails + +It is reported that `npm run build` can fail on machines with no swap space, which is common in cloud environments. If [the symptoms are matching](https://github.com/facebookincubator/create-react-app/issues/1133#issuecomment-264612171), consider adding some swap space to the machine you’re building on, or build the project locally. + ## Something Missing? If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/packages/react-scripts/template/README.md) From 74b742cce7a74da9a9df3f4c00599a86ef0ee33a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 5 Dec 2016 21:24:41 +0000 Subject: [PATCH 2/2] Update README.md --- packages/react-scripts/template/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 831210697a8..4f5c388e7df 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -57,7 +57,6 @@ You can find the most recent version of this guide [here](https://github.com/fac - [Troubleshooting](#troubleshooting) - [`npm test` hangs on macOS Sierra](#npm-test-hangs-on-macos-sierra) - [`npm run build` silently fails](#npm-run-build-silently-fails) - - [Something Missing?](#something-missing) ## Updating to New Releases