当我试着安装它时
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: map-acclerator@0.0.0
npm ERR! Found: @angular/common@13.2.7
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~13.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^14.0.0 || ^15.0.0" from @angular/google-maps@14.0.4
npm ERR! node_modules/@angular/google-maps
npm ERR! @angular/google-maps@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!即使我使用武力或者遗留的同伴
我在app.module.ts中导入它时得到了一个错误
发布于 2022-07-13 09:05:14
你必须安装一个旧版本的谷歌地图软件包,因为它至少需要角14。最后一个版本,支持角13是13.3.9。您可以这样安装它:
npm i @angular/google-maps@13.3.9https://stackoverflow.com/questions/72963365
复制相似问题