2016-05-12 196 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

雅我試過這一切它沒有運行任何地方 –