2017-10-19 25 views
0

현재 DefinitelyTyped repo에서 bleno에 대한 일반 정의를 설치하려고합니다. 내가 사용하는 명령은DefinitelyTyped Typscript 정의를 설치할 수 없습니다. "허가가 거부되었습니다 (공개 키)." via npm

npm install --save @types/bleno 

입니다. 그러나 Repo를 복제 할 수없는 것 같습니다.

npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No README data 
npm ERR! git clone [email protected]:types/bleno Cloning into bare 
repository '/root/.npm/_git-remotes/git-github-com-types-bleno- 
71caf4ab'... 
npm ERR! git clone [email protected]:types/bleno Permission denied 
(publickey). 
npm ERR! git clone [email protected]:types/bleno fatal: Could not read 
from remote repository. 
npm ERR! git clone [email protected]:types/bleno 
npm ERR! git clone [email protected]:types/bleno Please make sure you have 
the correct access rights 
npm ERR! git clone [email protected]:types/bleno and the repository 
exists. 
npm ERR! addLocal Could not install types/bleno 
npm ERR! Error: ENOENT: no such file or directory, stat 'types/bleno' 
npm ERR!  at Error (native) 
npm ERR! If you need help, you may report this *entire* log, 
npm ERR! including the npm and node versions, at: 
npm ERR!  <http://github.com/npm/npm/issues> 

npm ERR! System Linux 4.9.41-v7+  
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" 
"@types/bleno" 
npm ERR! cwd /home/nils/BluetoothServer 
npm ERR! node -v v4.8.2 
npm ERR! npm -v 1.4.21 
npm ERR! path types/bleno 
npm ERR! syscall stat 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/nils/BluetoothServer/npm-debug.log 
npm ERR! not ok code 0 

은 물론 나는 sudo를 사용하려고 내가 GitHub의에 SSH 키를 추가하고 나는

ssh -T [email protected] 

를 통해 GitHub의에 연결할 수있어하지만 내 문제가 지속. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

답변

0

아침에 문제를 해결하기 위해 노력한 후, 물론 묻는 직후에 나는 영혼을 발견했다. npm을 3.10.10 버전으로 업그레이드했는데 아무런 문제가 없었습니다.