2016-08-10 14 views
0

に指定された依存関係のバージョンを称えるない:NPMは、私が<code>package.json</code>を以下しているpackage.json

{ 
    "name": "bignibou-client", 
    "version": "0.0.0", 
    "license": "MIT", 
    "angular-cli": {}, 
    "scripts": { 
    "start": "ng serve", 
    "postinstall": "typings install", 
    "lint": "tslint \"src/**/*.ts\"", 
    "test": "ng test", 
    "pree2e": "webdriver-manager update", 
    "e2e": "protractor" 
    }, 
    "private": true, 
    "dependencies": { 
    "@angular/common": "2.0.0-rc.5", 
    "@angular/compiler": "2.0.0-rc.5", 
    "@angular/core": "2.0.0-rc.5", 
    "@angular/forms": "0.3.0", 
    "@angular/http": "2.0.0-rc.5", 
    "@angular/platform-browser": "2.0.0-rc.5", 
    "@angular/platform-browser-dynamic": "2.0.0-rc.5", 
    "@angular/router": "3.0.0-rc.1", 
    "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.1", 
    "angular2-moment": "^0.8.1", 
    "bootstrap": "4.0.0-alpha.3", 
    "es6-shim": "0.35.1", 
    "moment": "^2.13.0", 
    "ng2-bootstrap": "^1.0.23", 
    "ng2-translate": "^2.2.2", 
    "reflect-metadata": "0.1.3", 
    "rxjs": "5.0.0-beta.6", 
    "systemjs": "0.19.27", 
    "zone.js": "0.6.12" 
    }, 
    "devDependencies": { 
    "angular-cli": "1.0.0-beta.10", 
    "codelyzer": "0.0.20", 
    "ember-cli-inject-live-reload": "1.4.0", 
    "jasmine-core": "2.4.1", 
    "jasmine-spec-reporter": "2.5.0", 
    "karma": "0.13.22", 
    "karma-chrome-launcher": "0.2.3", 
    "karma-jasmine": "0.3.8", 
    "protractor": "3.3.0", 
    "ts-node": "0.5.5", 
    "tslint": "3.11.0", 
    "typescript": "1.8.10", 
    "typings": "0.8.1" 
    } 
} 

しかし、私はいつも@ng-bootstrap/ng-bootrap次のバージョンで終わる:1.0.0-alpha.2

この明示しているにもかかわらずalpha.1package.json

"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.1", 

何が原因か分かりますか?NPMは別のバージョンを強制しますか?

P.S.

私はまた、NPMログからの情報を含めています:

154593 silly linkStuff [email protected] has /Users/julien/Documents/projects/bignibou as its parent node_modules 
154594 verbose linkBins [email protected] 
154595 verbose linkMans [email protected] 
154596 verbose rebuildBundles [email protected] 
154597 verbose rebuildBundles [ '.DS_Store', 
154597 verbose rebuildBundles '.bin', 
154597 verbose rebuildBundles '@angular', 
154597 verbose rebuildBundles '@ng-bootstrap', 
154597 verbose rebuildBundles 'angular-cli', 
154597 verbose rebuildBundles 'angular2-moment', 
154597 verbose rebuildBundles 'bootstrap', 
154597 verbose rebuildBundles 'codelyzer', 
154597 verbose rebuildBundles 'ember-cli-inject-live-reload', 
154597 verbose rebuildBundles 'es6-shim', 
154597 verbose rebuildBundles 'jasmine-core', 
154597 verbose rebuildBundles 'jasmine-spec-reporter', 
154597 verbose rebuildBundles 'karma', 
154597 verbose rebuildBundles 'karma-chrome-launcher', 
154597 verbose rebuildBundles 'karma-jasmine', 
154597 verbose rebuildBundles 'moment', 
154597 verbose rebuildBundles 'ng2-bootstrap', 
154597 verbose rebuildBundles 'ng2-translate', 
154597 verbose rebuildBundles 'protractor', 
154597 verbose rebuildBundles 'reflect-metadata', 
154597 verbose rebuildBundles 'rxjs', 
154597 verbose rebuildBundles 'systemjs', 
154597 verbose rebuildBundles 'ts-node', 
154597 verbose rebuildBundles 'tslint', 
154597 verbose rebuildBundles 'typescript', 
154597 verbose rebuildBundles 'typings', 
154597 verbose rebuildBundles 'zone.js' ] 
154598 info install [email protected] 
154599 info postinstall [email protected] 
154600 verbose unsafe-perm in lifecycle true 
154601 info prepublish [email protected] 
154602 verbose validateInstall loading /Users/julien/Documents/projects/bignibou/bignibou-client/package.json for validation 
154603 verbose stack Error: The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements! 
154603 verbose stack  at /usr/local/lib/node_modules/npm/lib/install.js:125:32 
154603 verbose stack  at /usr/local/lib/node_modules/npm/lib/install.js:268:7 
154603 verbose stack  at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:142:5 
154603 verbose stack  at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:263:14 
154603 verbose stack  at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24) 
154603 verbose stack  at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:263:14 
154603 verbose stack  at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24) 
154603 verbose stack  at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:263:14 
154603 verbose stack  at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24) 
154603 verbose stack  at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:263:14 
154604 verbose cwd /Users/julien/Documents/projects/bignibou/bignibou-client 
154605 error Darwin 15.5.0 
154606 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" 
154607 error node v4.4.5 
154608 error npm v2.15.5 
154609 error code EPEERINVALID 
154610 error peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements! 
154610 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.5 
154610 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.5 
154610 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.5 
154610 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.5 
154610 error peerinvalid Peer @ng-bootstrap/[email protected] wants @angular/[email protected]^2.0.0-rc.5 
154610 error peerinvalid Peer [email protected] wants @angular/[email protected] 
154610 error peerinvalid Peer [email protected] wants @angular/[email protected]^2.0.0-rc.3 
154611 verbose exit [ 1, true ] 

答えて

2

実は、あなたはすべてのバージョンは、メジャーバージョン番号(別名1.xxの)として1を持つが、であること

を指定少なくとも1.0.0-alpha.1バージョン

1.0.0-alpha.1バージョンのみを取得するには、指定したバージョンをb

^

せずに電子

1.0.0-alpha.1

はここに試してみてください:Semver calculator

+0

あなたが正しいです。どうもありがとう。 – balteo

関連する問題