Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning: Watchman `watch-project` returned a warning: Recrawled this watch X times, most recently because

warning: Watchman `watch-project` returned a warning: Recrawled this watch 11 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/path/to/my/project' ; watchman watch-project '/path/to/my/project'`

I'm constantly getting this warning when starting Metro (e.g. react-native start).

I know the question has been asked before and the consensus is to run the following (as the warning also suggests):

watchman watch-del '/path/to/my/project' ;
watchman watch-project '/path/to/my/project'

This command does make it go away temporarily, however it comes back again in a few hours/next day. So it's never a solution, just a workaround. I'm on macOS 13.4 and also gave watchman full disk access, but that doesn't change anything either. Also, even if it worked, giving a command line tool full disk access (whereas it just should be accessing my project directory inside Documents) doesn't feel right from a security point of view anyway.

I also need watchman while working with React Native, so simply removing it also isn't an option (one of the questions had that as an "answer", hence the mention).

Why has this been happening for years now, and how can I get rid of this warning permanently?

like image 449
Can Poyrazoğlu Avatar asked Nov 16 '25 12:11

Can Poyrazoğlu


1 Answers

First Stop the Metro by:

 ctrl + c

then run this command,

watchman watch-del-all   //this removes or deletes all current listening watchman

then,

 npm start
like image 93
Ashif AL Avatar answered Nov 19 '25 10:11

Ashif AL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!