尝试安装,更新了firebase并对这些确切版本做出反应。使用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.
答案 0 :(得分:0)
您正在尝试全局安装react-firebase-file-uploader
,我想您需要为您的项目安装它,在这种情况下,您希望它是一个依赖项。像
npm install -S react-firebase-file-uploader
还要确保已安装firebase@^3.5.2
和react@^15.3.2