问题
i'm new to react native and i was trying to build an app to see how it works,i followed the steps given here
Getting Started with React Native
till npm start,everything seems to be fine,after i type npm start,it says
12:08:53 PM: Starting packager...
and gets stuck at that,am i doing something wrong,I'm on Ubuntu 16.04
any inputs would be helpful
回答1:
It was fixed by runnig
sudo sysctl -w fs.inotify.max_user_watches=10000
See this site:
https://forums.expo.io/t/packager-not-loading-on-linux/2034/3
回答2:
everyone has a different solution, depending on the problem.I have a few step that work for me.I just run this command on console:
react-native start --reset-cache
wait until console display like image below:
after that press
Ctrl + C
and runnpm start
oryarn start
or other command to run your react-native project.
来源:https://stackoverflow.com/questions/44942997/react-native-stuck-at-starting-packager