背景
Atom で Regex Railroad Diagram パッケージをインストールしたら、npm ERR! となってしまう。
実行環境:
- Ubuntu 13.10 64bit
問題の詳細
以下はエラーログ。
npm ERR! git clone git://github.com/klorenz/regexp Cloning into bare repository '/home/kenta-goto/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-klorenz-regexp-16667da8'...
npm ERR! git clone git://github.com/klorenz/regexp
npm ERR! git clone git://github.com/klorenz/regexp fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/klorenz/regexp github.com[0: 192.30.252.130]: errno=??????????
npm ERR! Error: Command failed: fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.130]: errno=??????????
npm ERR!
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:648:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:756:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:823:5)
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 3.11.0-26-generic
npm ERR! command "/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/bin/node" "/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/home/kenta-goto/.atom/.apmrc" "install" "/home/kenta-goto/.atom/.node-gyp/.atom/.apm/regex-railroad-diagram/0.6.3/package.tgz" "--target=0.18.0" "--arch=x64"
npm ERR! cwd /tmp/apm-install-dir-115014-9607-bbf9y
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! code 128
npm ERR! git clone git://github.com/klorenz/railroad-diagrams Cloning into bare repository '/home/kenta-goto/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-klorenz-railroad-diagrams-805a9d5a'...
npm ERR! git clone git://github.com/klorenz/railroad-diagrams
npm ERR! git clone git://github.com/klorenz/railroad-diagrams fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/klorenz/railroad-diagrams github.com[0: 192.30.252.130]: errno=??????????
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/apm-install-dir-115014-9607-bbf9y/npm-debug.log
npm ERR! not ok code 0
シェルからやっても同様のエラー。
$ apm install regex-railroad-diagram
apm のバージョンは以下のとおり。
$ apm -v
apm 0.116.0
npm 1.4.4
node 0.10.33
python 2.7.5+
git 1.8.3.2
Regex Railroad Diagram 以外のパッケージはいまのところ問題なく入る。
Windows7 でも同様の現象が起きた。