2016-08-26 6 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 angular2-tree-compon[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

관련 문제