简体   繁体   English

react-firebase-file-uploader的未满足对等依赖关系

[英]Unmet peer dependencies for react-firebase-file-uploader

Trying to install, have updated firebase and react to these exact versions. 尝试安装,更新Firebase并对这些确切版本做出反应。 Using npm version 4.1.2 - any thoughts? 使用npm 4.1.2版本-有什么想法吗?

npm install -g react-firebase-file-uploader
/usr/local/lib

├── UNMET PEER DEPENDENCY firebase@^3.5.2

├── UNMET PEER DEPENDENCY react@^15.3.2

└── react-firebase-file-uploader@2.4.1

npm WARN react-firebase-file-uploader@2.4.1 requires a peer of firebase@^3.5.2 but none was installed.
npm WARN react-firebase-file-uploader@2.4.1 requires a peer of react@^15.3.2 but none was installed.

You are trying to install react-firebase-file-uploader globally, I suppose you need to install it for your project and in which case you want it to be a dependency. 您正在尝试全局安装react-firebase-file-uploader ,我想您需要为项目安装它,在这种情况下,您希望它成为依赖项。 Install it like 安装像

npm install -S react-firebase-file-uploader

Also make sure you have firebase@^3.5.2 and react@^15.3.2 installed 另外,还要确保你已经firebase@^3.5.2react@^15.3.2安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM