Rolando
Rolando

Reputation: 62624

How to get started with angular2-material? Failing to npm install

I am trying to follow: https://github.com/angular/material2/blob/master/GETTING_STARTED.md

Though I keep getting hung up on the initial npm install:

npm install --save @angular2-material/core @angular2-material/button @angular2-material/card

npm WARN @angular2-material/[email protected] requires a peer of @angular/core@^2.0.0-rc.5 but none was installed.

@angular2-material/[email protected] requires a peer of @angular/core@^2.0.0-rc.5 but none was installed.

How can I get around this? Nothing it getting installed...

Upvotes: 0

Views: 275

Answers (1)

Jorawar Singh
Jorawar Singh

Reputation: 7621

npm WARN @angular2-material/[email protected] requires a peer of @angular/core@^2.0.0-rc.5 but none was installed. It require a higher version of angular and i thing you have something below that. upgrading to latest should resolve your problem. you can look into package.json what version you are getting with angular-cli and if it is not latest just hack it and update to latest.

Upvotes: 0

Related Questions