Macos 无法在我的mac os x中安装cordova

Macos 无法在我的mac os x中安装cordova,macos,cordova,Macos,Cordova,当我通过终端安装时,我得到以下错误 npm ERR! network getaddrinfo ENOTFOUND 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 net

当我通过终端安装时,我得到以下错误

npm ERR! network getaddrinfo ENOTFOUND
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.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/abp2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/abp2/npm-debug.log
npm ERR! not ok code 0
我在这个社区中遵循了许多答案,但仍然无法安装它

根据一些建议,我已经改变安装科尔多瓦代码这样

$ sudo npm --proxy proxy-server:8080 install -g cordova
但现在我遇到了这样的问题

npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! network tunneling socket could not be established, cause=connect EHOSTUNREACH
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.4.0
npm ERR! command "node" "/usr/local/bin/npm" "--proxy" "proxy-server:8080" "install" "-g" "cordova"
npm ERR! cwd /Users/abp2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR! not ok code 0

提前谢谢

您是否支持代理?问题在于您的特定代理。问题不在于cordova Entry是这样的。npm-proxy安装{your package name}。检查您的节点版本,我在节点0.10.32上遇到了相同的问题,更新到0.10.33修复了我用命令$npm-proxy-server:8080 install-g cordova尝试过的问题,但也有很多错误