-
Notifications
You must be signed in to change notification settings - Fork 294
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
macOS fsevents unavailable (this watcher can only be used on Darwin)
#423
Comments
It happens in version 1.31.0 as well. I see that you have 1.31.1 listed. Is that the Insiders version? |
No, 1.31.1 was just the latest vscode release
|
|
I had watchman already installed. I did a full |
@EdouardBougon Those instructions worked for me, thanks! |
Figured it out. I didn't realise that Nuxt was putting a jest config into package.json, and for some reason, I had |
|
I was facing this problem with version of node in 11.15.0, then I changed to v10.15.3 and its gone. |
I'm using jest with react native, every things goes well before I restarted my machine, then I got the same error. Installing watchman didn't solve my problem, I stoped Metro Bundler I deleted build folder from android project I relaunchced my app and it works again. |
|
|
npm install fsevents fixed my issue as well. This is on a fresh install of mac osx |
|
|
Nothing helped until...
|
|
|
macOs: Catalina |
But why? Anyone can explain why we have to run |
|
|
|
You guys should look for the reasons, not just There is no documentation says we need install |
For me I tried all of the above but nothing worked. I had to set the correct nap version. for me I used the following command as I use nvm and have several version of nom installed.
Hope this will help someone out there. |
@LitoMore The reason being: Jest Haste Map has a dependencies on SaneWatcher which can use FB Watchman over
|
@6220119 Thank you so much my Grabber! 🤝 |
|
Run |
|
In my case all I needed was |
|
|
the fsevents and node-gyp packages have caused me issues for years, and it seems like nobody understands what actually causes this. i'm on mac os 10.15 but since mac os ~10.12 in like 2017 it's thrown random errors and occasionally messed up here's some things which have seemed to be related:
i've shown these issues to people much smarter than me and nobody seems to be able to diagnose the problem. the fact that it sprawls between node, python and even c++ makes me think i'm just not going to figure this out and should just reinstall (although i haven't actually had to yet). i still have no clue what the central issue is, and whenever i google for related issues i just see threads like this with dozens of people saying "well i tried this and it worked i guess," and eventually, replies like "that didnt work for me." and many of them still get replies, like this one -- the last reply was just 8 days ago. if the above suggestions don't work, reader, i wish i could help you. edit: i've seen "try installing or reinstalling watchman" many times and although it clearly works for a lot of people, it's one of the few suggestions that has never improved things for me. edit 2: i switched to ubuntu because i like laptops with usb and hdmi ports. got a thinkpad and it installed in 15 minutes and i've actually had zero problems, never going back. |
brew install watchman, this works!! |
This worked for me!! |
However, i stumbled across a non-related issue to do with excessive Not sure specifically why this approach to reinstalling But this may provide an alternative approach for others who may like to avoid installing additional dependencies such as |
I was using Node 15 but the project was created in the Node 8 days. Fix for me was:
This is why all projects should have an |
macos: Big Sur |
使用这个命令安装就好了 npm install --save-dev fsevents |
Environment
code -v
: 1.31.0 7c66f58312b48ed8ca4e387ebd9ffe9605332caa x64node -v
: 10.15.1npm -v
: 6.7.0npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): [email protected]your vscode-jest settings if customized:
Operating system: macOS 10.14.3
Prerequisite
npm run test
ornode_modules/.bin/jest
):jest .
Steps to Reproduce
Relevant Debug Info
Expected Behavior
Watch mode to work as expected
Actual Behavior
A notification is shown "Starting Jest in Watch mode failed too many times and has been stopped." and the Jest extension output window is shown with the debug info above.
The text was updated successfully, but these errors were encountered: