安装 react-native 0.22.2版本出错
来源:
poooocket
2016-09-24
把 node_modules 里面的 react-native 和 react 删掉,
然后在这个项目里,重新 npm install react-native@0.22.2 react@0.14.8 --save
结果
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
SOLINK_MODULE(target) Release/validation.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
然后:react-native run-ios
模拟器上imoocApp打不开
/Users/Adrain/Projects/imoocApp/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:482:3: error:
ignoring return value of function declared with warn_unused_result
attribute [-Werror,-Wunused-result]
SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
1回答
-
感觉跟 Nodejs 的版本也不兼容呢,把整个 node_modules 文件夹删掉,用 nvm 重新安装一个 nvm install v4.5.0 的版本,然后 nvm alias default v4.5.0,之后,再重新走一下以上的步骤,看看能不能成功
012016-09-25
相似问题
回答 2