2016-07-29 32 views
4

私は既存のプロジェクトをクローンしました。ここで互換性のあるバージョンが見つかりません

npm WARN package.json [email protected] No repository field. 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v0.12.4 
npm ERR! npm v2.10.1 
npm ERR! code ETARGET 

npm ERR! notarget No compatible version found: [email protected]'>=0.5.1 <0.6.0' 
npm ERR! notarget Valid install targets: 
npm ERR! notarget ["0.0.1","0.0.2","0.1.0","0.1.1","0.2.0","0.2.1","0.3.0","0.3.1"] 
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself. 
npm ERR! notarget In most cases you or one of your dependencies are requesting 
npm ERR! notarget a package version that doesn't exist. 
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'sdk' 
npm ERR! notarget 

npm ERR! Please include the following file with any support request: 
npm ERR!  c:\GIT\mas\Rapid\hide\npm-debug.log 

package.jsonです:npm installを実行した後、私はこのエラーを得た私は既に更新

{ 
    "name": "sdk", 
    "version": "1.0.0", 
    "description": "", 
    "main": "index.js", 
    "scripts": { 
    "postinstall": "typings install && bower install --production && jspm install && node src/tools/updateDependencies.js && npm run bundle-dep", 
    "_jspm": "jspm install", 
    "_postjspm": "node src/tools/updateDependencies.js && npm run bundle-dep", 
    "bundle-dep": "jspm bundle \"src - [src/**/*] - [components/**/*]\" www/bundle.js", 
    "start": "node dev-server.js" 
    }, 
    "author": "", 
    "license": "ISC", 
    "dependencies": { 
    "jspm": "^0.17.0-beta.12", 
    "typings": "^0.7.12" 
    }, 
    "devDependencies": { 
    "angular2": "2.0.0-beta.15", 
    "chokidar-socket-emitter": "^0.5.1", 
    "express": "^4.13.4", 
    "open": "0.0.5", 
    "rxjs": "5.0.0-beta.2", 
    "spdy": "^3.2.3" 
    }, 
    "jspm": { 
    "name": "sdk", 
    "directories": { 
     "lib": "src" 
    }, 
    "dependencies": { 
     "angular2": "npm:[email protected]", 
     "es6-shim": "github:es-shims/[email protected]^0.35.0", 
     "json": "github:systemjs/[email protected]^0.1.0", 
     "systemjs-hot-reloader": "github:capaj/[email protected]^0.5.6" 
    }, 
    "devDependencies": { 
     "os": "github:jspm/[email protected]^0.2.0-alpha", 
     "plugin-typescript": "github:frankwallis/[email protected]^4.0.5" 
    }, 
    "peerDependencies": { 
     "fs": "github:jspm/[email protected]^0.2.0-alpha", 
     "net": "github:jspm/[email protected]^0.2.0-alpha", 
     "process": "github:jspm/[email protected]^0.2.0-alpha", 
     "reflect-metadata": "npm:[email protected]", 
     "rxjs": "npm:[email protected]^5.0.0-beta.2", 
     "tty": "github:jspm/[email protected]^0.2.0-alpha", 
     "util": "github:jspm/[email protected]^0.2.0-alpha", 
     "zone.js": "npm:[email protected]^0.6.6" 
    }, 
    "overrides": { 
     "npm:[email protected]": { 
     "main": false, 
     "dependencies": { 
      "reflect-metadata": "npm:[email protected]", 
      "rxjs": "npm:[email protected]^5.0.0-beta.2", 
      "zone.js": "npm:[email protected]^0.6.6" 
     }, 
     "peerDependencies": { 
      "reflect-metadata": "npm:[email protected]", 
      "rxjs": "npm:[email protected]^5.0.0-beta.2", 
      "zone.js": "npm:[email protected]^0.6.6" 
     }, 
     "jspmNodeConversion": false, 
     "map": { 
      "crypto": "@empty" 
     }, 
     "meta": { 
      "src/*.js": { 
      "deps": [ 
       "reflect-metadata", 
       "zone.js" 
      ] 
      } 
     }, 
     "format": "detect" 
     }, 
     "npm:[email protected]": { 
     "map": { 
      "crypto": "@empty" 
     } 
     }, 
     "npm:[email protected]": { 
     "browser": {}, 
     "map": { 
      "buffer": "@empty", 
      "child_process": "@empty", 
      "fs": "@empty", 
      "path": "@empty", 
      "process": "@empty", 
      "readline": "@empty" 
     } 
     } 
    } 
    } 
} 

npmhere、それでも全く効果が言ったように。私は何をすべきか?

+0

@randyどの部分?多くの "依存"オブジェクトがあります。 –

+0

もう1つの提案 - 提供しているパスから空白を削除してください。 ex - プログラムファイル。空白には「\」を使用し、2つの文字列間の空白を削除するには「_」を使用します。 – NarendraC

答えて

3

インストールしようとしているバージョンがNPMによって提供されていません。エラーメッセージを読んで、3.1が現在提供している最新のリリースであることがわかる場合は、5.1をインストールしています。

あなたpackage.jsondevdependencychokidar-socket-emitterを除去することによって、これを修正し、このコマンドを実行することができます

npm install chokidar-socket-emitter --save-dev

バージョン3.1をインストールすること。

関連する問題