npm WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.
2017-07-03 20:26
656 查看
解决方案:
方法一:
方法二:在package.json中可以添加依赖
方法一:
npm install -save react@~15.3.1
方法二:在package.json中可以添加依赖
"dependencies": { "react": "^15.3.2", "react-native": "^0.35.0", "react-native-orientation": "^1.17.0", "react-native-scrollable-tab-view": "^0.6.0", }
相关文章推荐
- react-native init的时候出现问题:npm WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was
- WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.
- stylus-loader@2.5.1 requires a peer of stylus@>=0.52.4 but none was installed 错误
- npm WARN @angular-devkit/schematics@0.0.51 requires a peer of @angular-devkit/core@0.0.28 but none i
- stylus-loader@2.5.1 requires a peer of stylus@>=0.52.4 but none was installed 错误
- url-loader@0.5.9 requires a peer of file-loader@* but none was installed.
- peerDependencies WARNING sass-loader@^6.0.7 requires a peer of node-sass@^4.0.0 but none was install
- An incompatible version 1.1.1 of the Apache Tomcat Native library is installed, while Tomcat requires version 1.1.3
- An incompatible version 1.1.1 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17
- ReactNative : ignoring return value of function declared with warn_unused_result attribute
- npm WARN checkPermissions Missing write access to D:\react-native-workspace\react-native\react-nativ
- react从零到native--npm及webpack学习
- ......but was actually of type [sun.proxy.$Proxy8]
- [React Native] Animate the Scale of a React Native Button using Animated.spring
- At least one Instantiations product installed into this version of Eclipse was compiled
- The currently selected variant "debug" uses split APKs, but none of the 1 split apks are compatible.
- react-native执行 npm install cl.exe找不到 的问题
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- 解决 Setting onMessage on a WebView overrides existing values of window.postMessage, but a previous value was defined.
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]