[email protected] requires a peer of @angular/common@^2.3.1 but none was installed

612 views Asked by At

I am getting this error in my application.

[email protected] requires a peer of @angular/common@^2.3.1 but none was installed.

How can I solve it?

1

There are 1 answers

0
karser On

@angular/common@^2.3.1 means >=2.3.1 <3.0.0.

  • If you are on angular <2.3.1 just update to 2.4 or 4.1.
  • If you are on angular 4, just ignore this message, since it's backwards compatible with Angular 2.

Btw after 0.17.0 or higher, angular2-google-maps has been changed to @ngui/map.

npm install @ngui/map @types/googlemaps --save

See the usage instructions