运行.\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运行良好。