卡在“开始包装” – 反应本机
当我运行启动的React Native项目( 你可以在这里看到 ), npm start
脚本在Starting packager
器上进行扫描
我已经阅读了关于这个问题的这个话题:
反应社区问题:203
反应母语粘连,在启动,打包
反应社区问题:302
但没有一个解决scheme帮助我。 我试图改变观察者的数量,但没有工作。 我试图安装看守,但没有帮助。
一些环境信息:
SO:Linux 64位节点v:v7.10.0
任何人都可以帮我吗?
如果在Ubuntu 17.10上从create-react-native-app开始, 就会遇到同样的问题,最后在Linux上工作。
首先,更新你的节点版本。 检查项目内部的react-native info
你有类似的东西:
Environment: OS: Linux 4.13 Node: 8.9.1 Yarn: 1.3.2 npm: 5.5.1 Watchman: 4.9.0 Xcode: N/A Android Studio: Not Found Packages: (wanted => installed) react: 16.0.0-beta.5 => 16.0.0-beta.5 react-native: ^0.49.5 => 0.49.5
对于新鲜的Ubuntu安装,您将需要以下依赖关系来构buildWatchman:
$ sudo apt-get install python-dev libssl-dev autoconf automake libtool
从源头build立守望者:
$ git clone https://github.com/facebook/watchman.git $ cd watchman $ git checkout v4.9.0 # the latest stable release $ ./autogen.sh $ ./configure $ make $ sudo make install
接下来,这个:
$ echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p $ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p $ echo fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
最后,你可以运行yarn start
,它应该工作。
- 如何防止Node.js / Express提供我的应用程序的源代码?
- 如何用Socket.io和Node.js开发一个大型的聊天应用程序
- 由于asynchronousnodejs,无法将数据添加到数组中
- 更改LESS文件不会自动重新编译在节点/快递/咖啡设置
- 运行时错误:无法find模块“leaflet.awesome-markers”离子3
- yargs – require函数用于不能静态提取依赖关系的方式
- npm,nodejs,package.json,模块版本不匹配。 预计48,得到51
- Nodejs,通过httpsauthentication并redirect到http
- 节点js服务器不加载我的网站文件