APM can't install package from China


#1

I use apm install vim-mode

npm http GET https ://registry.npmjs.org/underscore-plus
npm http GET https ://registry.npmjs.org/underscore-plus
npm http GET https ://registry.npmjs.org/underscore-plus
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’

npm ERR! System Darwin 13.1.0
npm ERR! command “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js” “–userconfig” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc” “install” “/var/folders/vk/xvmghy9j1cl0tbms32x8fb440000gn/T/d-114215-4768-1ecm2zm/package.tgz” “–target=0.11.10” "–arch=x64"
npm ERR! cwd /private/var/folders/vk/xvmghy9j1cl0tbms32x8fb440000gn/T/apm-install-dir-114215-4768-1iilwk0
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/vk/xvmghy9j1cl0tbms32x8fb440000gn/T/apm-install-dir-114215-4768-1iilwk0/npm-debug.log
npm ERR! not ok code 0


#2

That is network problem. I’m at Hangzhou China and everything is ok.

我在杭州/联通试了下apm install vim-mode能够正常安装,没翻墙。所以检查下你自己的网络或者换个网络环境试试吧。


#3

The command failed to download underscore-plus from npm registry, can you check if npm install underscore-plus works on your side?


#4

it works for npm but not work for apm.