In my case, the issue was that 'watchman' wasn't listed under Full Disk Access in macOS settings. To resolve it, I manually added 'watchman' to Full Disk Access in the Privacy settings. Once I did that, everything worked perfectly.