React Native STUCK starting packager
I had the same issue. I solved it by changing react-native-scripts version from "^1.14.1" to "1.14.0" and run npm install again.
after a long search I found a solution for this problem:
this problem is caused by another watchman process, to solve it you have to turn off the watchman process
first,check react,react-native,and expo version are they compatible, goto here
Then you must install watchman, goto https://facebook.github.io/watchman/docs/install.html. Check watchman has installed by:
watchman -v
result:
4.9.4
After that, type in terminal or cmd:
watchman watch-del-all
result:
{
"version": "4.9.4",
"roots": [
"C:/Users/***/Documents/Project/quickCountAndroidCrna"
]
}
look in the "roots"
section:
"roots": [
"C:/Users/***/Documents/Project/quickCountAndroidCrna"
]
if "roots"
not empty, you must shutdown watchman process, typing this in terminal or cmd:
watchman shutdown-server
result:
{
"version": "4.9.4",
"shutdown-server": true
}
run again watchman watch-del-all
you will get result with empty roots like this:
{
"version": "4.9.4",
"roots": []
}
after that you can run npm start
or yarn start
or other command to start your react-native project.
if the problem still occurs, repeat the above method several times, make sure the "roots"
are empty! in my case, even I had to repeat it up to 3 times.