abdi
abdi

Reputation: 589

Watchman won't let me start any of my react native projects after i updated my mac OS

This is my first time asking a question so please bear with me if i’m not asking according to the standards but ill try my best.

watchman warning: opendir(/Users/abdi/Library/VoiceTrigger/SAT) -> Operation not permitted. Marking this portion of the tree deleted To clear this warning, run: watchman watch-del /Users/abdi ; watchman watch-project /Users/abdi

This is the error i'm getting every time i try start any project, even the ones that i created previously.

I tried the following:

  1. watchman watch-del /Users/abdi ; watchman watch-project /Users/abdi
  2. Giving watchman full-disk access and restarting
  3. Moving my project to root folder (/Users/abdi)

This is what i get when i run watchman watch-list { "version": "4.9.0", "roots": [ "/Users/abdi" ] }

Please help.

Upvotes: 7

Views: 15168

Answers (3)

abdi
abdi

Reputation: 589

I found solution. After giving full disk access use watchman watch /Users/$USER/.... to watch your project instead of watchman watch-project /Users/$USER/....

Upvotes: 0

Samuel Hulla
Samuel Hulla

Reputation: 7119

Bit late to the party, but to me the following worked

  1. Shut down the metro server / simulator (if it's running)

  2. Turn off and clear watchman cache

    $ watchman shutdown-server
    $ watchman watch-del-all
    
  3. Start your project (i.e. react-native start, expo start, etc.)

There's no need to give watchman full disk access (nor should you)

Upvotes: 28

Wez Furlong
Wez Furlong

Reputation: 4987

You need to grant full disk access to watchman to allow it to watch the locations you've asked it to watch.

Go to 'System preferences' -> 'Security & Privacy' -> scroll down and click 'Full Disk Access', and then check 'Watchman'.

After changing this, restart your laptop.

See these other links for more information:

Upvotes: 2

Related Questions