【发布时间】:2017-04-19 10:53:24
【问题描述】:
我在代理后面遇到了 npm 问题。
npm install 失败,因为从 apm 启动时 npm 无法 git clone,这很奇怪,因为 apm 外的相同命令行可以工作。
npm ERR! Command failed: git -c core.longpaths=true fetch -a origin
npm ERR! fatal: Unable to look up github.com (port 9418) (Unknown host.)
.npmrc 内容
proxy=http://proxy-xxx:8080
http-proxy=http://proxy-xxx:8080
https-proxy=http://proxy-xxx:8080
.gitconfig 内容
[url "https://"]
insteadOf = git://
[url "https://github.com/"]
insteadOf = git@github.com:
[http]
proxy = proxy-xxx:8080
似乎它来自 git URL,这很奇怪,因为手动启动时相同的命令有效。
我错过了什么?
【问题讨论】:
标签: node.js git atom-editor