2016-05-12 201 views
2

你好是新来反应对Android.Am本地做例子APP上反应原生Android

提到这个如何解决这个打包错误:

npm ERR! Linux 3.16.0-70-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 
npm ERR! node v6.0.0 
npm ERR! npm v3.9.0 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `node_modules/react-native/packager/packager.sh` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node_modules/react-native/packager/packager.sh'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the react_sample package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node_modules/react-native/packager/packager.sh 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs react_sample 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls react_sample 
npm ERR! There is likely additional logging output above. 

谁能什么在packager.sh问题,或者它的问题上cli.js。我注册表NPM还&如果我运行应用程序生成成功完整,但没有得到输出什么是index.android.js。请任何人都不帮我在Android上找到适当的解决方案

+0

以上是否有任何行?通常在这些线路上有一个软件包安装失败,有助于解决问题。 –

+0

Packager无法侦听端口8081 是这个端口问题吗?如何调试呢? @BradBumbalough –

+0

嘿..有解决这个问题的办法? – Jickson

回答

0

您很可能已经在其他地方运行了打包程序......运行这些命令。

$ lsof -n -i4TCP:8081

你应该得到一个进程ID(PID)返回。用返回的ID运行下一个命令。

$ kill -9 <PID>

现在再次尝试运行npm start

+0

雅我试过这一切它没有运行任何地方 –