UNMET PEER DEPENDENCY with Angular2-jwt - ionic 2

Hey Guys,

I have found a tutorial with exactly what i need.

I says that i need to install Angular2-jwt, but when i run npm install angular2-jwt i get the following errors

- angular2@2.0.0-beta.17 node_modules/angular2
- reflect-metadata@0.1.2 node_modules/angular2-jwt/node_modules/reflect-metadata
- rxjs@5.0.0-beta.2 node_modules/angular2-jwt/node_modules/rxjs
myapp@ /Users/imauser/Projects/myapp/
├── UNMET PEER DEPENDENCY @angular/core@2.0.0-rc.3
├── UNMET PEER DEPENDENCY @angular/http@2.0.0-rc.3
└─┬ angular2-jwt@0.1.18 
  └── atob@2.0.3 

npm WARN angular2-jwt@0.1.18 requires a peer of @angular/core@^2.0.0-rc.4 but none was installed.
npm WARN angular2-jwt@0.1.18 requires a peer of @angular/http@^2.0.0-rc.4 but none was installed.
npm WARN myapp@ No repository field.
npm WARN myapp@ No license field.

I would really love to get this going, so any help at all would be greatly appreciated.

Thanks all :slight_smile:

Or you could wait ionic beta.11 with rc4 or use the old version of angular2-jwt

I was having a similar error, updating all NPM packages with
npm update -G
seems to have solved it

Well that got rid of the atob@2.0.3 … But no luck with the angular2-jwt@0.1.18 … Thanks for the tip anyhow … Does this upgrade the version of Ionic 2 as well?

Is there a release date for beta. 11 with rc4? … How do i tell what version i have?

Sadly, it updates only the global packages. Try finding the out of date packages with
npm outdated
And upgrading them one by one.

Yikes, that looks complex haha

But from what i can tell, run npm update then update the package.json with the new version number.

Is that about right?

1 Like

You may have already
Beta 11 with Angular2 rc4 is out. Ionic 2 Beta 11
Upgrade instruction and code changes required are provided in change log…

Also you can check your package.json file. Version info for all dependencies are in this file.