在我的react-native项目中,我已经将react-native依赖项更新为:
"react-native": "^0.30.0"然后我运行npm install。
但是,在运行此命令并检查命令行中的反应本机版本后,它仍然显示我的版本为0.28。发生了什么,我如何更新到react-native的最新版本(同时确保其他包和依赖项与它一起工作)。谢谢。
以下是我看到的错误:
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-S" "react-native@0.30.0"
npm ERR! node v5.4.1
npm ERR! npm v3.10.6
npm ERR! Maximum call stack size exceeded
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/*********/f8app/npm-debug.log发布于 2016-08-30 02:54:51
npm install -S react-native@0.30.0
和
react-native upgrade
react-native link
然后检查是否一切正常。
发布于 2016-08-30 03:09:39
您确定安装过程中没有错误吗?我建议您只使用rm -rf /node_modules && npm i,这样您就可以确保安装了最新版本。
https://stackoverflow.com/questions/39213169
复制相似问题