angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

I can't install for angular 11

Open sergiogman opened this issue 5 years ago • 12 comments

npm i @agm/core npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @angular/[email protected] npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~11.0.5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^9.1.0 || ^10.0.0" from @agm/[email protected] npm ERR! node_modules/@agm/core npm ERR! @agm/core@"*" 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! npm ERR! See \AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! \AppData\Local\npm-cache_logs\2021-02-05T15_13_10_410Z-debug.log

sergiogman avatar Feb 05 '21 15:02 sergiogman

You can skip peer dependency conflicts checking by running npm install --legacy-peer-deps or you can set npm config set legacy-peer-deps true and then run npm install once again.

More information: https://blog.npmjs.org/post/626173315965468672/npm-v7-series-beta-release-and-semver-major

Greenek avatar Feb 09 '21 13:02 Greenek

You can skip peer dependency conflicts checking by running npm install --legacy-peer-deps or you can set npm config set legacy-peer-deps true and then run npm install once again.

More information: https://blog.npmjs.org/post/626173315965468672/npm-v7-series-beta-release-and-semver-major

Hi, try npm install --legacy-peer-deps i've this: npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@angular-devkit/[email protected]', npm WARN EBADENGINE required: { node: '>= 10.13.0', npm: '^6.11.0 || ^7.5.6', yarn: '>= 1.13.0' }, npm WARN EBADENGINE current: { node: 'v14.15.3', npm: '7.5.4' } npm WARN EBADENGINE }

blondie63 avatar Mar 19 '21 15:03 blondie63

@blondie63 it's unrelated. You have to update npm to 7.5.6 or newer to match @angular-devkit/architect requirements.

Greenek avatar Mar 19 '21 18:03 Greenek

Is there a plan to update the package for compatibility with Angular 11? Looks like this PR might be doing it? https://github.com/SebastianM/angular-google-maps/pull/1919

JoeOsterfeld avatar Mar 29 '21 18:03 JoeOsterfeld

@JoeOsterfeld It seems that this repository was abandoned and not maintained any more

sergey-morenets avatar Apr 05 '21 18:04 sergey-morenets

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 21 '21 02:07 stale[bot]

Any update on this, having the same issue

npm install @agm/core --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~12.1.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^9.1.0 || ^10.0.0" from @agm/[email protected]
npm ERR! node_modules/@agm/core
npm ERR!   @agm/core@"*" 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! 
npm ERR! See /Users/macbookair/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/macbookair/.npm/_logs/2021-08-19T14_58_50_869Z-debug.log

mikende avatar Aug 19 '21 15:08 mikende

Any update on this, having the same issue

npm install @agm/core --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~12.1.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^9.1.0 || ^10.0.0" from @agm/[email protected]
npm ERR! node_modules/@agm/core
npm ERR!   @agm/core@"*" 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! 
npm ERR! See /Users/macbookair/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/macbookair/.npm/_logs/2021-08-19T14_58_50_869Z-debug.log

@mikende You can use this library instead: @angular/google-maps

sergey-morenets avatar Aug 19 '21 16:08 sergey-morenets

@blondie63 it's unrelated. You have to update npm to 7.5.6 or newer to match @angular-devkit/architect requirements.

I just updated my npm for Angular less then 11 to this version 7.5.6 and npm run build is working. Great thanks!

TetianaNazarova avatar Oct 08 '21 13:10 TetianaNazarova

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 03:01 stale[bot]

You can skip peer dependency conflicts checking by running npm install --legacy-peer-deps or you can set npm config set legacy-peer-deps true and then run npm install once again.

More information: https://blog.npmjs.org/post/626173315965468672/npm-v7-series-beta-release-and-semver-major

Works perfect for me!!!... realy thnx

Andronico1973 avatar Feb 17 '22 22:02 Andronico1973

What's the sense of having a package which is not working?????? import { AgmCoreModule } from '@agm/core'; // cannot find the package. After running npm install --legacy-peer-deps, it can install, but it didn't install nothing. Checking from node_modules there's no such @agm/core package.

glv1at118 avatar Mar 10 '23 15:03 glv1at118