shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 241 forks source link

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

Open suvadandelta opened 7 years ago

suvadandelta commented 7 years ago

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/common@4.0.1 +-- UNMET PEER DEPENDENCY @angular/compiler@4.0.1 +-- UNMET PEER DEPENDENCY @angular/core@4.0.1 +-- UNMET PEER DEPENDENCY @angular/forms@4.0.1 `-- angular2-modal@2.0.3

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 fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN angular2-dynamic-component@0.0.50 requires a peer of @angular/core@~2.0.0 but none was installed. npm WARN angular2-dynamic-component@0.0.50 requires a peer of @angular/common@~2.0.0 but none was installed. npm WARN angular2-dynamic-component@0.0.50 requires a peer of @angular/compiler@~2.0.0 but none was installed. npm WARN angular2-dynamic-component@0.0.50 requires a peer of @angular/platform-browser@~2.0.0 but none was installed. npm WARN angular2-dynamic-component@0.0.50 requires a peer of @angular/http@~2.0.0 but none was installed. npm WARN angular2-dynamic-component@0.0.50 requires a peer of rxjs@~5.0.0-beta.12 but none was installed. npm WARN angular2-dynamic-component@0.0.50 requires a peer of zone.js@~0.6.13 but none was installed. npm WARN angular2-modal@2.0.3 requires a peer of @angular/core@^2.1.1 but none was installed. npm WARN angular2-modal@2.0.3 requires a peer of @angular/common@^2.1.1 but none was installed. npm WARN ng2-bootstrap@1.2.6 requires a peer of @angular/common@^2.3.0 but none was installed. npm WARN ng2-bootstrap@1.2.6 requires a peer of @angular/compiler@^2.3.0 but none was installed. npm WARN ng2-bootstrap@1.2.6 requires a peer of @angular/core@^2.3.0 but none was installed. npm WARN ng2-bootstrap@1.2.6 requires a peer of @angular/forms@^2.3.0 but none was installed.**

dnyg commented 7 years ago

I also get an error:

npm WARN angular2-modal@2.0.3 requires a peer of @angular/core@^2.1.1 but none was installed. npm WARN angular2-modal@2.0.3 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",
FredBesterwitch commented 7 years ago

Did you resolve this Im getting the same error, thanks

sinchi commented 7 years ago

i have the same error too !

ynguyentps commented 7 years ago

me too

AdiDahan commented 7 years ago

any workaround ?

oanacioara commented 7 years ago

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

FriOne commented 7 years ago

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

oanacioara commented 7 years ago

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" }

FriOne commented 7 years ago

No, it should be placed in this module dependencies.

d4e666 commented 7 years ago

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