-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error npm test on MacOs Sierra #871
Comments
The issue was fixed to installing of watchman. |
Thanks for information! Yeah unfortunately it will likely take some time for the underlying dependencies to fix all Sierra issues. |
In case the specificity helps anyone, I ran:
|
Haha I just had this issue and your comment fixed it. Thanks! |
Another data point: I just had this on Node 6.9.1 but not on 6.3.1. |
Installing watchman fixed it as mentioned above. If you get a password prompt enter your password then run all commands again. And if it's not obvious -- close and reopen your terminal or terminal tab after installing. |
I had this same issue on rm -rf ./node_modules
yarn cache clean
yarn After that running |
Thank you @Peterlollo ! |
brew install watchman worked for me, using high Sierra 10.13.1 |
well just spent 1.5 hours trying to get the test runner to work. |
Amazing work on finding that watchman is the case!
I'm not sure this should be closed. |
It's not required. The problem is that when it's not available, the alternative watcher doesn't always work and can die unexpectedly. The good news is we're updating to Jest 22 soon which falls back to yet another watcher when watchman isn't available—which doesn't have this issue. |
So this should all go away in the next major release. |
This is still an issue with node@9.4.0, watchman@4.9.0 macOS@10.13.3 and react-scripts@1.1.1 |
@villesau still having the same issue as well, watchman doesn't fix the issue either. |
I am also still having this issue. node@8.10.0, watchman@4.9.0, macOS@10.13.3, react-scripts@1.1.1 |
For me at least, it turned out I had an older version of watchman installed globally in npm. Uninstalling that got me working again. |
Still having the same issue, installing Watchman didn't help. Any ideas guys ? |
I'm currently having this issue. Installing watchman via Brew does eliminate the error, but for some reason Jest can't find my tests so I uninstalled it. I noticed that this problem started as I was making my latest commit, so I tried moving my |
I got the same error using Travis CI :( |
facebook#871 is still an issue on the latest version of react-scripts (1.1.4 at time of writing). Rather than having people eventually find this issue and waste time, be more helpful and provide a note in the readme so people are aware this is an issue and don't waste time. create-react-app is great for people that are learning react and this issue affects them negatively. This note can be removed once the issue is fixed.
I'm using create-react-app and following instructions here: Removing jest-enzyme fixed the error for me. I'll try downgrading jest-enzyme to see if it helps. |
1 similar comment
I'm using create-react-app and following instructions here: Removing jest-enzyme fixed the error for me. I'll try downgrading jest-enzyme to see if it helps. |
Installing worked @afarriaga |
Hey there,
I can't run with success the
npm test
command:Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
:react-scripts@0.6.1
node -v
:v6.7.0
npm -v
:3.10.3
Any idea?
The text was updated successfully, but these errors were encountered: