Closed YajanaRao closed 2 years ago
same issue
The code that's preventing watchman from running is here: https://github.com/facebook/watchman/blob/main/watchman/main.cpp#L93-L98
You can tweak the min_acceptable_nice_value
in your /etc/watchman.json
You could also try starting react-native with a higher nice value :)
If you're still having problems or have other questions, feel free to reopen the issue!
Thanks; I just delete the entire check.
Nothing is working for me. Even I didn't find any etc/watchman.json
file.
So I have to remove the full watchman
package. I am using Linux, and the command I use to remove watchman
is:
sudo apt remove watchman
After that I run the below command to update the repositories:
sudo apt update && sudo apt autoremove && sudo apt autoclean
Now everything is working perfectly. My app is running.
Note: I know this is not an ideal solution. If anyone finds any better solution, please comment on this issue so that everyone can be benefited.
If you end up in a situation like me, where I don't have watchman installed through apt, but in a yarn package, the following may help:
sudo apt update && sudo apt upgrade
or flatpak update
) try rebooting your system. Some pointers or symlinks may not have updated correctly until next reboot.EDIT: In addition to the steps above:
.watchmanconfig
to your project if you happen to have watchman installed as a dependency in your proejct and have a homebrew installation, and add the following to that file:
{
"min_acceptable_nice_value": 8
}
Tweak as needed
I am getting this error on
react-native start
.I have tried
watchman --no-spawn --no-local shutdown-server
. Did not help.The version is
2220410.024423.0
Watchman is running at a lower than normal priority. Since that results in poor performance that is otherwise very difficult to trace, diagnose and debug, Watchman is refusing to start. Fatal error detected at: (error retrieving stack trace