安装Cordova时出错

我试图在我的电脑上安装cordova。 我得到以下错误。

> Your environment has been set up for using Node.js 0.12.0 (x64) and npm. C:\Users\DELL>npm install -g cordova npm WARN engine npm@1.4.28: wanted: {"node":">=0.8","npm":"1"} (current: {"node" :"0.12.0","npm":"2.5.1"}) npm WARN engine cordova-js@3.7.3: wanted: {"node":"~0.10.x"} (current: {"node":" 0.12.0","npm":"2.5.1"}) npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: { "node":"0.12.0","npm":"2.5.1"}) npm ERR! fetch failed http://registry.npmjs.org/resolve/-/resolve-0.7.1.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND p roxy.company.com npm ERR! fetch failed http://registry.npmjs.org/resolve/-/resolve-0.7.1.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND p roxy.company.com npm ERR! fetch failed http://registry.npmjs.org/resolve/-/resolve-0.7.1.tgz npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs \\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! network getaddrinfo ENOTFOUND proxy.company.com 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 settin gs. 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! Please include the following file with any support request: npm ERR! C:\Users\DELL\npm-debug.log C:\Users\DELL> 

您安装的node.js版本是0.12,卸载相同并尝试安装node.js的0.10.0版本。 然后尝试安装cordova。

希望这将有助于…