运行 npm install 时有关对等依赖项的警告
Warnings about peer dependencies when running npm install
我正在尝试使用
更新我的 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
我正在尝试使用
更新我的 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