我试图通过在命令提示符下使用以下命令在我的 windows8 机器上安装 cordova
npm install -g cordova
但由于以下错误,我无法安装,请有人帮助我。
错误:
npm ERR! Windows_NT 6.3.9600 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.1 npm ERR! npm v2.5.1 npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=getaddrinfo EN OTFOUND proxy 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\miracle\npm-debug.log
最佳答案
你应该做的步骤:
- npm 缓存清理
2.根据提示将node版本恢复到v0.10.36,最新版本的node可能不兼容window用户的新cli。
3.在管理模式下运行 Node cli或cmd
4.npm install -g cordova
关于node.js - 错误! Windows_NT 6.3.9600,windows8无法安装cordova,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30171242/