2016-05-30 8 views
0

角度2をRCにアップグレードしようとすると、次のエラーが発生します。 JWTは、RCの依存関係を持っているので、私は@angularする更新する必要がありましたAngular2に更新できませんRC @ angle @ 2.0.0-rc.1

M:\workspace\Angular2StartKit>npm install 
npm ERR! addLocal Could not install M:\workspace\Angular2StartKit\@[email protected] 
npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\manish\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v4.2.2 
npm ERR! npm v3.9.5 
npm ERR! path M:\workspace\Angular2StartKit\@[email protected] 
npm ERR! code ENOENT 
npm ERR! errno -4058 
npm ERR! syscall open 

npm ERR! enoent ENOENT: no such file or directory, open 'M:\workspace\Angular2StartKit\@[email protected]' 
npm ERR! enoent ENOENT: no such file or directory, open 'M:\workspace\Angular2StartKit\@[email protected]' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR! M:\workspace\Angular2StartKit\npm-debug.log  

package.json

"dependencies": { 
    "angular2": "2.0.0-beta.1", 
    "angular2-jwt": "^0.1.12", 
    "body-parser": "~1.13.2", 
    "cors": "^2.7.1", 
    "es6-promise": "3.0.2", 
    "es6-shim": "0.33.3", 
    "express": "4.13.3", 
    "express-jwt": "^3.4.0", 
    "gulp-concat": "2.6.0", 
    "material-design-lite": "^1.1.3", 
    "mongodb": "^2.1.16", 
    "mongoose": "^4.4.12", 
    "promise": "^7.1.1", 
    "reflect-metadata": "0.1.2", 
    "rxjs": "5.0.0-beta.0", 
    "systemjs": "0.19.16", 
    "zone.js": "0.5.10" 
    }`  
+0

ジャストライン・ノー12エラー参照:いいえそのようなファイルやディレクトリを.. 1はangular.io/docs/ts/latest/quickstart.htmlからpacagesを比較したり、 M:\ workspaceの可能性があります\ Angular2StartKitパスの問題 – mayur

+0

rc1のドキュメントから:ターミナル/コンソールウィンドウでnode -vとnpm -vを実行してノード 'v5.x.x'とnpm' 3.x.x'を実行していることを確認します。古いバージョンと新しいバージョンではエラーが発生します。 – Alexandr

答えて

1

Angular2 RC1では、あなたはpackage.jsonに指定する必要があり、サブパッケージのセットがありますベータ版と同じようにない大きなパッケージファイル:

{ 
    (...) 
    "dependencies": { 
    "@angular/common": "2.0.0-rc.1", 
    "@angular/compiler": "2.0.0-rc.1", 
    "@angular/core": "2.0.0-rc.1", 
    "@angular/http": "2.0.0-rc.1", 
    "@angular/platform-browser": "2.0.0-rc.1", 
    "@angular/platform-browser-dynamic": "2.0.0-rc.1", 
    "@angular/router": "2.0.0-rc.1", 
    "@angular/router-deprecated": "2.0.0-rc.1", 
    "@angular/upgrade": "2.0.0-rc.1", 
    (...) 
    } 
} 
+0

これは、私のファイル間ですべてのインポートを変更する必要があることを意味します... sigh – user2180794

+0

あなたのpackage.jsonファイルにAngular2 beta1を使用していますか? –

+1

はい。そうです。 RCが問題を引き起こしているので、私はそれをベータ版に戻しました。すべてのパッケージを別々に含めることをお勧めします。 – user2180794

関連する問題