You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a note for OSX users about watchman and jest (facebook#1080)
* Add a note for OSX users about watchman and jest
Minor additional information on how to solve watchman problems reported in facebook#713 and facebook#1767
* Introduced new Troubleshooting section
Add better explanation how to solve facebook#713 and linked related Issues.
* Tweak wording and add it to TOC
Copy file name to clipboardexpand all lines: packages/react-scripts/template/README.md
+27
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
53
53
-[Now](#now)
54
54
-[S3 and CloudFront](#s3-and-cloudfront)
55
55
-[Surge](#surge)
56
+
-[Troubleshooting](#troubleshooting)
56
57
-[Something Missing?](#something-missing)
57
58
58
59
## Updating to New Releases
@@ -1069,6 +1070,32 @@ Install the Surge CLI if you haven't already by running `npm install -g surge`.
1069
1070
1070
1071
Note that in order to support routers that use HTML5 `pushState` API, you may want to rename the `index.html` in your build folder to `200.html` before deploying to Surge. This [ensures that every URL falls back to that file](https://surge.sh/help/adding-a-200-page-for-client-side-routing).
1071
1072
1073
+
## Troubleshooting
1074
+
1075
+
### `npm test` hangs on macOS Sierra
1076
+
1077
+
If you run `npm test` and the console gets stuck after printing `react-scripts test --env=jsdom` to the console there might be a problem with your [Watchman](https://facebook.github.io/watchman/) installation as described in [facebookincubator/create-react-app#713](https://github.com/facebookincubator/create-react-app/issues/713).
1078
+
1079
+
We recommend deleting `node_modules` in your project and running `npm install` (or `yarn` if you use it) first. If it doesn't help, you can try one of the numerous workarounds mentioned in these issues:
It is reported that installing Watchman 4.7.0 or newer fixes the issue. If you use [Homebrew](http://brew.sh/), you can run these commands to update it:
1086
+
1087
+
```
1088
+
watchman shutdown-server
1089
+
brew update
1090
+
brew reinstall watchman
1091
+
```
1092
+
1093
+
You can find [other installation methods](https://facebook.github.io/watchman/docs/install.html#build-install) on the Watchman documentation page.
1094
+
1095
+
If this still doesn't help, try running `launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist`.
1096
+
1097
+
There are also reports that *uninstalling* Watchman fixes the issue. So if nothing else helps, remove it from your system and try again.
1098
+
1072
1099
## Something Missing?
1073
1100
1074
1101
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)
0 commit comments