我在使以下命令正常工作时遇到问题。我在 steroids.js 论坛上发帖,但这似乎更像是一个通用的 git 问题。url 上带有前导“git@”的所有 repo 都失败。
命令
npm install steroids -g
错误
npm ERR! git clone https://git@github.com/AppGyver/incubator-ripple.git Cloning into bare repository '/Users/kbaker/.npm/_git-remotes/https-git-github-com-AppGyver-incubator-ripple-git-2c417fa2'...
npm ERR! git clone https://git@github.com/AppGyver/incubator-ripple.git
npm ERR! git clone https://git@github.com/AppGyver/ios-sim.git
npm ERR! git clone https://git@github.com/AppGyver/ios-sim.git fatal: Unable to look up git@github.com (port 9418) (nodename nor servname provided, or not known)
npm ERR! Error: Command failed: fatal: Unable to look up git@github.com (port 9418) (nodename nor servname provided, or not known)
我下载了以下 npm 包的 github repo,调整了 packages.json 文件以使用不会失败的 repo url,但我仍然收到有关缺少包的错误。
我试过更新 npm 和 git 命令。这可能与我正在运行 zsh 的事实有关吗?
想法?