components icon indicating copy to clipboard operation
components copied to clipboard

Error when installing @angular/material

Open Husamui opened this issue 10 years ago • 6 comments

I'm getting errors when install @angular/material npm install --save @angular/material

├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── @angular/[email protected]
└── UNMET PEER DEPENDENCY @angular/[email protected]

npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.

Any suggestions?

Husamui avatar Oct 13 '16 20:10 Husamui

The problem was Angular Cli installing angular2.0.0 but Angular material looking for angular2.0.2, I've changed that in the package.json and run npm install again and solved the problem.

Husamui avatar Oct 13 '16 22:10 Husamui

image

i got this error when i do "ng serve" after installing ngmaterial2

please help @Husamui

fahadhussain2 avatar Jan 26 '17 10:01 fahadhussain2

@Husamui can you please tell me which dependencies i should change 2.0.0 to 2.0.2 in package.json .... i got the same error... please help

fahadhussain2 avatar Jan 26 '17 11:01 fahadhussain2

@fahadhussain2 Can you post your Package.json here, I can tell from partial screenshot of it out of date

Husamui avatar Jan 27 '17 03:01 Husamui

image

@Husamui

fahadhussain2 avatar Jan 28 '17 07:01 fahadhussain2

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.