watchman: Watchman crawl failed. After MacOS Catalina Update

After the MacOS update and zsh terminal change i can’t run my app with npm start even with a watchman blank file. I’m getting this error:

jest-haste-map:` Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file 
in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman error: resolve_projpath: path `(mypath)`: open: (mypath): Operation 
not permitted. Make sure watchman is running for this project. 
See https://facebook.github.io/watchman/docs/troubleshooting.html.

Should i downgrade? Or there is any fix for this?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (1 by maintainers)

Most upvoted comments

Guys. I spent hours to figure this out. I found a solution. If you still face this problem after you re-install node, watchman and expo cli etc, You gotta try this simple step. Trust me. Its all bcuz of catalina grant access to folders permission.

First, Kill all the server running and close your terminal. Go to ‘System preference’ -> ‘Security & Privacy’ -> scroll down and click ‘Full Disk Access’ -> Make sure you checked on ‘Terminal’ and ‘Watchman’. Save and restart ur laptop.

You are welcome.

To change the permissions for Watchman regarding the Documents folder, it’s under Security & Privacy -> files & folders in the system preferences

I think the Desktop has similar problems as Documents, I moved mine to my root user directory ( /Users/{myuser} ) and it worked.

I had the same problem. I moved the entire project directory outside of the Documents directory and it solved the problem. Appears to be something related to the new permissions catalina requires for access to the Documents directory.

@nikhilthakur001 What actually solved this for me was that I needed to run watchman shutdown-server after doing all of the above. When I fired it up again I got the OS’s disk-access permission dialog which I confirmed and everything started to work as expected.

I think the Desktop has similar problems as Documents, I moved mine to my root user directory ( /Users/{myuser} ) and it worked.

this one solved it for me.

Tried all the stuff from “Full disk access” to reinstall, chmod etc. But moving project under {user} folder solved all the issues. Damn Catalina’s new security rules. Spent few days on that.

Same, this only solved my problem, but there must be a better solution. I manage all my projects in Documents/projects. It would not be possible to move all my react-native projects to /User/{myuser}.

How to change fix the issue in Ubuntu? 😦