简体   繁体   English

如何修复Cordova安装错误

[英]How to Fix Cordova installation error

I am installing cordova using NPM (Node.js), but I am getting the below error: 我正在使用NPM(Node.js)安装cordova,但出现以下错误:

在此处输入图片说明

Please help me to fix it. 请帮助我修复它。

This looks like a proxy issue , i believe that u have to set the proxy in the npm , you could do that by running this 这看起来像是代理问题,我相信您必须在npm中设置代理,您可以通过运行

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

port name and company would vary . 港口名称和公司将有所不同。 as accordingly . 据此。

Go to Tools->Internet option->Connection->Lan Setting in the internet explorer in the lan settings look into the proxy server address and port (if any) Hope this helps. 转到lan设置中Internet Explorer的“ Tools->Internet option->Connection->Lan Setting ,查看代理服务器的地址和端口(如果有),希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM