ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

Not able to Run npm install angular2-modal --save

Open suvadandelta opened this issue 7 years ago • 9 comments

I am trying to install angular2 model but I am getting error Please help Command: npm install angular2-modal --save

**Error: +-- UNMET PEER DEPENDENCY @angular/[email protected] +-- UNMET PEER DEPENDENCY @angular/[email protected] +-- UNMET PEER DEPENDENCY @angular/[email protected] +-- UNMET PEER DEPENDENCY @angular/[email protected] `-- [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN [email protected] requires a peer of @angular/core@~2.0.0 but none was installed. npm WARN [email protected] requires a peer of @angular/common@~2.0.0 but none was installed. npm WARN [email protected] requires a peer of @angular/compiler@~2.0.0 but none was installed. npm WARN [email protected] requires a peer of @angular/platform-browser@~2.0.0 but none was installed. npm WARN [email protected] requires a peer of @angular/http@~2.0.0 but none was installed. npm WARN [email protected] requires a peer of rxjs@~5.0.0-beta.12 but none was installed. npm WARN [email protected] requires a peer of zone.js@~0.6.13 but none was installed. npm WARN [email protected] requires a peer of @angular/core@^2.1.1 but none was installed. npm WARN [email protected] requires a peer of @angular/common@^2.1.1 but none was installed. npm WARN [email protected] requires a peer of @angular/common@^2.3.0 but none was installed. npm WARN [email protected] requires a peer of @angular/compiler@^2.3.0 but none was installed. npm WARN [email protected] requires a peer of @angular/core@^2.3.0 but none was installed. npm WARN [email protected] requires a peer of @angular/forms@^2.3.0 but none was installed.**

suvadandelta avatar Apr 06 '17 12:04 suvadandelta

I also get an error:

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

I guess it is because I'm using Angular 4. My package.json:

    "@angular/common": "~4.0.0",
    "@angular/core": "~4.0.0",

dnyg avatar Apr 09 '17 06:04 dnyg

Did you resolve this Im getting the same error, thanks

FredBesterwitch avatar Apr 18 '17 03:04 FredBesterwitch

i have the same error too !

sinchi avatar Apr 19 '17 19:04 sinchi

me too

ynguyentps avatar May 04 '17 10:05 ynguyentps

any workaround ?

AdiDahan avatar May 05 '17 21:05 AdiDahan

I'm also getting this error. I'm trying to upgrade to angular 4 from angular 2, but I'm stuck because of this.

oanacioara avatar May 10 '17 06:05 oanacioara

This module should set dependencies like this "angular2-modal": "=>2.0.3", but you should get warning instead of error.

FriOne avatar May 10 '17 07:05 FriOne

This causes the following error:

npm ERR! notarget No compatible version found: angular2-modal@=>@2.0.3 npm ERR! notarget Valid install targets: npm ERR! notarget 0.0.1, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.1.0, 0.1.1, 0.1.1-alpha, 0.1.1-alpha2, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 2.0.0-beta.0, 2.0.0-beta.1, 2.0.0-beta.1a, 2.0.0-beta.2, 1.1.1, 2.0.0-beta.3, 1.1.2, 2.0.0-beta.4, 1.1.3, 1.1.4, 2.0.0-beta.5, 2.0.0-beta.6, 1.1.5, 2.0.0-beta.7, 2.0.0-beta.8, 2.0.0-beta.9, 2.0.0-beta.10, 2.0.0-beta.11, 2.0.0-beta.12, 2.0.0-beta.13, 2.0.0-beta.14, 2.0.0, 2.0.1, 2.0.2, 2.0.3

This is what I have in package.json

"dependencies": { "@angular/common": "^4.0.0", "@angular/compiler": "^4.0.0", "@angular/core": "^4.0.0", "@angular/forms": "^4.0.0", "@angular/http": "^4.0.0", "@angular/platform-browser": "^4.0.0", "@angular/platform-browser-dynamic": "^4.0.0", "@angular/router": "^4.0.0", "core-js": "^2.4.1", "rxjs": "^5.1.0", "zone.js": "^0.8.4", "angular2-modal": "=>@2.0.3" }

oanacioara avatar May 10 '17 08:05 oanacioara

No, it should be placed in this module dependencies.

FriOne avatar May 10 '17 12:05 FriOne

I tried the installation and all was successful. I'm using angular CLI with angular v4.1.2 and webpack

d4e666 avatar May 15 '17 20:05 d4e666