code-chunks / angular2-logger

A log4j inspired logger for angular 2.
MIT License
144 stars 41 forks source link

Unmet peer dependencies on install #114

Closed timofeysie closed 7 years ago

timofeysie commented 7 years ago

Hi, When I try to install this package, I get multiple unmet perr dependencies:

$ npm install --save angular2-logger
ehs-hybrid-prototype-2@ /Users/timcurchod/repos/ehs-prototype-2
├── UNMET PEER DEPENDENCY @angular/compiler@2.0.0
├── UNMET PEER DEPENDENCY @angular/core@2.0.0
├── angular2-logger@0.5.1 
├── UNMET PEER DEPENDENCY reflect-metadata@0.1.2
├── UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12
├── UNMET PEER DEPENDENCY tslint@~4.0.0
└── UNMET PEER DEPENDENCY zone.js@0.6.21

npm WARN @ngtools/webpack@1.1.9 requires a peer of @angular/compiler-cli@2.2.3 but none was installed.
npm WARN @ngtools/webpack@1.1.9 requires a peer of @angular/core@2.2.3 but none was installed.
npm WARN angular2@2.0.0-beta.6 requires a peer of reflect-metadata@0.1.2 but none was installed.
npm WARN angular2@2.0.0-beta.6 requires a peer of rxjs@5.0.0-beta.0 but none was installed.
npm WARN angular2@2.0.0-beta.6 requires a peer of zone.js@0.5.14 but none was installed.
npm WARN codelyzer@2.0.0-beta.3 requires a peer of tslint@~4.0.0 but none was installed.
npm WARN codelyzer@2.0.0-beta.3 requires a peer of @angular/compiler@<=2.3 >=2.2.0 but none was installed.
npm WARN codelyzer@2.0.0-beta.3 requires a peer of @angular/core@<=2.3 >=2.2.0 but none was installed.
mac-dog:ehs-prototype-2 timcurchod$ npm -v
3.10.8
mac-dog:ehs-prototype-2 timcurchod$ node -v
v6.9.1
mac-dog:ehs-prototype-2 timcurchod$ ionic -v
2.1.14

As you can see, it's for an Ionic project. Also, I'm on macOS Sierra: 10.12.1.

Thanks for any help.

langley-agm commented 7 years ago

You need to update your package file with those dependencies.

The logger depends on Angular 2 and Angular 2 depends on those unmet dependencies, make sure you have specified them all in your project's package.json or install them manually:

npm install --save @angular/compiler
npm install --save @angular/core

etc...

langley-agm commented 7 years ago

I'm guessing this was solved since there was no more responses so I'm closing it.