簡體   English   中英

安裝節點軟件包“ Strongloop”時出錯

[英]Error while installing node package “Strongloop”

我正在嘗試安裝strongloop節點軟件包。 安裝時出現以下錯誤,這是因為SSH端口被阻止了嗎? 我已經安裝了nodenpm並可以正常工作

Node.js

npm WARN 'git config --get remote.origin.url' returned wrong result (git://githu
b.com/strongloop-forks/passwd-user)

npm ERR! git clone git://github.com/strongloop-forks/passwd-user Cloning into ba
re repository 'C:\Users\RG\AppData\Roaming\npm-cache\_git-remotes\git-github-com
-strongloop-forks-passwd-user-3982f620'...

npm ERR! git clone git://github.com/strongloop-forks/passwd-user

npm ERR! git clone git://github.com/strongloop-forks/passwd-user fatal: unable t
o connect to github.com:

npm ERR! git clone git://github.com/strongloop-forks/passwd-user github.com[0: 1
92.30.252.128]: errno=No error

npm ERR! Error: Command failed: fatal: unable to connect to github.com:

npm ERR! github.com[0: 192.30.252.128]: errno=No error

npm ERR!
npm ERR!

npm ERR!     at ChildProcess.exithandler (child_process.js:647:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:753:16)
npm ERR!     at Socket.<anonymous> (child_process.js:966:11)
npm ERR!     at Socket.EventEmitter.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:465:12)
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 Windows_NT 6.1.7600

npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "strongloop"
npm ERR! cwd C:\Users\RG\Desktop\node
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\RG\Desktop\node\npm-debug.log
npm ERR! not ok code 0

嘗試將其添加到您的〜/ .gitconfig文件中:

[url "http://"]
    insteadOf = ssh://

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM