React Native stuck at Starting Packager

孤者浪人 提交于 2019-12-01 00:01:12

问题


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 run npm start or yarn start or other command to run your react-native project.



来源:https://stackoverflow.com/questions/44942997/react-native-stuck-at-starting-packager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!