2017-10-10 55 views
0

运行时,在打包我得到当我运行命令下面的错误JS的本地捆绑失败产生反应的Android

反应本地运行的Android

的打包输出是:

Loading dependency graph... 
     Bundling `index.js` [development, non-minified] ░░░░░░░░░░░░░░░░ 0.0% (0/1)Error: watch 
ENOSPC 
    at _errnoException (util.js:1019:11) 
    at FSWatcher.start (fs.js:1383:19) 
    at Object.fs.watch (fs.js:1409:11) 
    at NodeWatcher.watchdir 

任何帮助?提前致谢。

回答

0

我遵循的步骤:

  • 杀死这是对8081端口开始了我的节点服务器进程。
  • 重新启动我的完整的开发环境
  • 然后开始了我打包(react-native start作为超级用户
  • 然后执行react-native run-android

现在它运行成功。

5

尝试重新运行该项目,并清理项目,cd android然后gradlew clean,我建议运行react-native start,然后再打开一个新的终端,运行react-native run-android,还我发现这是非常相似的故障排除的情况下,https://facebook.github.io/react-native/docs/troubleshooting.html#unable-to-start-react-native-package-manager-on-linux希望帮助:)

+0

已经尝试,但没有帮助.. – Cool7

+0

我编辑了我的答案,我添加了与您的问题非常相似的疑难解答页面 –