反应原生运行“。\ packager \ packager.sh”失败

时间:2016-03-09 09:13:03

标签: android reactjs

运行.\gradlew :Example:UIExplorer:android:app:installDebug

:ReactAndroid:preBuild UP-TO-DATE
:ReactAndroid:preReleaseBuild UP-TO-DATE
:ReactAndroid:compileReleaseNdk UP-TO-DATE
:ReactAndroid:compileLint
...
Installing APK 'app-debug.apk' on 'HTC One - 4.2.2 - API 17 - 1080x1920 - 4.2.2' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL

然后,运行.\packager\packager.sh启动服务。

问题来了:

Error: Cannot find module 'F:\gitProject\local-cli\cli.js'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:134:18)
    at node.js:962:3

PS:我创建'AwesomeProject'跟随react-native doc运行良好。

0 个答案:

没有答案