2016-08-26 23 views
0

私はangular2-tree-componentをインストールしようとしましたが、このエラーが発生しました。 私はまだあまりにもこのスタックを経験していないので、私が失敗した場合に助けを求めたいと思います...npm install -save angular2-tree-componentの実行に失敗しました

/R/VKS/oryol/oryol_ion (master) 
    $ sudo npm install --save angular2-tree-component 
Password: 

> [email protected] postinstall /S/KMR/R/VKS/oryol/oryol_ion/node_modules/angular2-tree-component 
> typings install 

typings ERR! message Unable to resolve Typings dependencies 
typings ERR! caused by Unable to find "typings.json" from "/S/KMR/R/VKS/oryol/oryol_ion/node_modules/angular2-tree-component" 

typings ERR! cwd /S/KMR/R/VKS/oryol/oryol_ion/node_modules/angular2-tree-component 
typings ERR! system Darwin 15.3.0 
typings ERR! command "/usr/local/bin/node" "/S/KMR/R/VKS/oryol/oryol_ion/node_modules/.bin/typings" "install" 
typings ERR! node -v v5.7.0 
typings ERR! typings -v 0.8.1 

typings ERR! If you need help, you may report this error at: 
typings ERR! <https://github.com/typings/typings/issues> 
npm WARN enoent ENOENT: no such file or directory, open '/S/KMR/R/VKS/oryol/oryol_ion/package.json' 
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0-rc.3 but none was installed. 
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0-rc.3 but none was installed. 
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0-rc.3 but none was installed. 
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0-rc.3 but none was installed. 
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0-rc.3 but none was installed. 
npm WARN [email protected] requires a peer of @angular/[email protected]^2.0.0-rc.3 but none was installed. 
npm WARN [email protected] requires a peer of [email protected]^0.6.12 but none was installed. 
npm WARN oryol_ion No description 
npm WARN oryol_ion No repository field. 
npm WARN oryol_ion No README data 
npm WARN oryol_ion No license field. 
npm ERR! Darwin 15.3.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "angular2-tree-component" 
npm ERR! node v5.7.0 
npm ERR! npm v3.6.0 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] postinstall: `typings install` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'typings install'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the angular2-tree-component package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  typings install 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs angular2-tree-component 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls angular2-tree-component 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /S/KMR/R/VKS/oryol/oryol_ion/npm-debug.log 

バージョン:

npm ERR! node v5.7.0 
npm ERR! npm v3.6.0 

どのバージョンの私が使うべきか?

何らかの理由で、希望のバージョンを依存関係として宣言してはいけませんか?

答えて

0

解決方法:間違ったディレクトリ(正しいディレクトリの親ディレクトリ)からコマンドラインを実行していたようです。

右ディレクトリ内の再実行が働いた:

$ sudo npm install --save angular2-tree-component 
+0

が現在のディレクトリでこのコマンドのニーズ「package.json」ファイルと述べて、非常に初めに、より明確に誤りではないでしょうか? – KarolDepka

関連する問題