gpt4 book ai didi

reactjs - 运行 npm install 时有关对等依赖项的警告

转载 作者:行者123 更新时间:2023-12-03 13:56:34 24 4
gpt4 key购买 nike

我正在尝试使用以下内容更新我的 React/Firebase 项目

npm install --save firebase-functions@latest

我收到很多警告:

npm WARN google-maps-react@2.0.0 requires a peer of react@~0.14.8 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN google-maps-react@2.0.0 requires a peer of react-dom@~0.14.8 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions@1.0.1 requires a peer of firebase-admin@~5.12.0 but none is installed. You must install peer dependencies yourself.

我是新手,所以不确定应该运行哪个命令来修复警告。

最佳答案

手动安装:

使用 npm 5.0.0 或更高版本(已编辑):

npm install react@^16.0.0
npm install react-dom@^16.0.0
npm install firebase-admin@~5.12.0
npm install firebase-functions@latest

npm 5.0.0 之前(原始版本):

npm install --save react@^16.0.0
npm install --save react-dom@^16.0.0
npm install --save firebase-admin@~5.12.0
npm install --save firebase-functions@latest

关于reactjs - 运行 npm install 时有关对等依赖项的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49722423/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com