ReactNative学习问题笔记三:The package react@16.0.0-alpha.6 does not satisfy its siblings' peerDependencies
来源:互联网 发布:windows系统字体大小 编辑:程序博客网 时间:2024/06/14 19:30
git上clone一个工程,本地机器上以前安装了nodeJs等环境,当执行‘npm install’命令开始下载安装第三方组件时,一直报以下异常:
npm ERR! peerinvalid The package react@16.0.0-alpha.6 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.44.0 wants react@16.0.0-alpha.6
npm ERR! peerinvalid Peer react-redux@5.0.5 wants react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0
npm ERR! peerinvalid Peer react-native-image-zoom-viewer@1.2.47 wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer react-native-camera@0.7.0 wants react@>=15.4.0
npm ERR! peerinvalid Peer redux-devtools@3.4.0 wants react@^0.14.9 || ^15.3.0
npm ERR! peerinvalid Peer react-dom@15.4.2 wants react@^15.4.2
npm ERR! peerinvalid Peer react-test-renderer@15.4.2 wants react@^15.4.2
网上查资料说是第三方组件配置的peerDependencies 版本有问题,改来改去还是有这个问题。
后来考虑是不是有可能NPM加载安装组件时,由于reactnative升级了,造成了加载失败。
’npm -v'命令查看npm版本是4.x.x
用'npm install npm -g’命令来升级npm(5.x.x)
到RN工程根目录下手动删除node_modules目录,然后重新执行’npm install’,这样相关依赖组件就会下载安装完成,问题解决
具体原因猜测可能是NPM加载新版本react、react_native等组件方式改变了,我机器上的npm版本较老,不支持!
- ReactNative学习问题笔记三:The package react@16.0.0-alpha.6 does not satisfy its siblings' peerDependencies
- 解决 MySQL 5.7 中 Your password does not satisfy the current policy requirements. 问题
- 解决 MySQL 5.7 中 Your password does not satisfy the current policy requirements. 问题
- Your password does not satisfy the current policy requirements
- Your password does not satisfy the current policy requirements解决办法
- the declared package does not match 解决办法
- 解决:The declared package..does not match the expected package..
- The declared package "" does not match the expected package
- The declared package does not match the expected package
- The declared package "" does not match the expected package "javaControlSql"
- The declared package does not match the expected package
- The declared package does not match the expected package
- The declared package does not match the expected package
- The declared package..does not match the expected package
- Eclipse: The declared package does not match the expected package
- The declared package does not match the expected package
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- 6月1日《网络安全法》出台_让被攻击者投诉有门!
- 关于工作
- 定时器实现数码时钟
- 8、spring-boot安全管理
- MySQL 慢查询日志
- ReactNative学习问题笔记三:The package react@16.0.0-alpha.6 does not satisfy its siblings' peerDependencies
- 运算符
- XML文件读写
- Centos 7 phpMyAdmin 服务安装及配置
- 欢迎使用CSDN-markdown编辑器
- angularjs select初始化时多了一个 null option
- HTML4.0和HTML5 属性之间的差异
- Node.js + Express.js 环境配置
- 云通信—连接产品与用户的桥梁