Rya*_*lle 4 gradle node.js gradlew react-native
每次尝试运行时,./gradlew assembleRelease都会得到以下信息:
FAILURE: Build failed with an exception.
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> A problem occurred starting process 'command 'react-native''
这是stacktrace的输出:https : //gist.github.com/rpastorelle/f0a42a87656e5326a186de4e34f691a0
如果我sudo用来运行该命令,它确实可以工作。但是,这主要是弄糟了一些权限,然后在构建调试版本时,Android Studio中出现“无法扩展ZIP”错误。
我的全局npm模块位于/usr/local/lib/node_modules&我是拥有该文件夹的用户。react-native-cli未使用安装sudo。