解决未满足的对等依赖项,无法下载正确的版本。

时间:2018-02-12 02:54:24

标签: node.js npm

嘿伙计们我试图从npm安装google-map-react模块,我最终得到了这个错误:

npm WARN react-google-maps@9.4.5 requires a peer of @types/googlemaps@^3.0.0 
but none is installed. You must install peer dependencies yourself.
npm WARN react-google-maps@9.4.5 requires a peer of 
@types/markerclustererplus@^2.1.29 but none is installed. You must install 
peer dependencies yourself.

然后当我尝试使用命令时:

npm install googlemaps@3.0.0 

我最终得到了

No matching version found for googlemaps@3.0.0

对我来说没有意义,因为一个包要求它,我得到这个错误。难道我做错了什么?

1 个答案:

答案 0 :(得分:0)

您正在尝试安装错误的npm包。正确的是

npm i @types/googlemaps@^3.0.0 

npm i @types/markerclustererplus@^2.1.29

阅读更多:Scoped Package