react-native init的时候出现问题:npm WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was
2017-12-05 10:23
585 查看
react-native init的时候出现问题:
报错信息
npm WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.
解决方案:
方法一: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", }
相关文章推荐
- npm WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.
- WARN React-native@0.35.0 requires a peer of react@~15.3.1 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 错误
- stylus-loader@2.5.1 requires a peer of stylus@>=0.52.4 but none was installed 错误
- peerDependencies WARNING sass-loader@^6.0.7 requires a peer of node-sass@^4.0.0 but none was install
- url-loader@0.5.9 requires a peer of file-loader@* but none was installed.
- npm install 的时候 出现 unexpected end of file的问题
- 1000并发时候,监控日志出现此问题:java.lang.OutOfMemoryError: unable to create new native thread
- Linux下运行Java项目时,出现No X11 DISPLAY variable was set, but this program performed an operation which requires it.的问题解决
- react-native npm install 时出现的python环境变量缺失的问题
- 运行React Native项目时出现Error watching file for changes: EMFILE问题解决
- React Native出现"Native module cannot be null"问题
- Maven出现以下问题:The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using ja
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- Android Studio在连接手机时候,出现"Instant Run requires 'Tools..."不能安装软件的问题
- 【RN】react-native init ***时,出现Cannot find module 'invariant'
- 解决sudo npm install -g react-native-cli 报错问题
- 今天通过npm 安装 install 的时候出现的问题
- JDBC操作MySQL出现:This result set must come from a statement that was created with a result set type of ResultSet.CONCUR_UPDATABLE, ...的问题解决