嘿伙计们我试图从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
对我来说没有意义,因为一个包要求它,我得到这个错误。难道我做错了什么?
答案 0 :(得分:0)
您正在尝试安装错误的npm包。正确的是
npm i @types/googlemaps@^3.0.0
和
npm i @types/markerclustererplus@^2.1.29
阅读更多:Scoped Package