我试图创建cordova最新版本(3.6.3)项目。我在代理环境下工作。我在npm中更新了代理设置。但是我仍然收到以下错误。
cordova创建HelloPhonegap com.tyc.hello" HelloPhonegap"
创建一个名为" HelloPhonegap"的新cordova项目。和id" com.tyc.hello"在位置" / Users / Desktop / HelloPhonegap"
下载cordova库为www ...
错误:无法建立隧道套接字,因为=分析错误
在ClientRequest.onError(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/request/node_modules/tunnel-agent/index.js:159:17)
在ClientRequest.g(events.js:180:16)
在ClientRequest.emit(events.js:95:17)
在Socket.socketOnData(http.js:1588:9)
在TCP.onread(net.js:527:27)
如何解决这个问题?请任何人帮助我。
提前致谢。
答案 0 :(得分:0)
Windows XP:
Open the Control Panel and click the System icon.
The System Properties dialog is displayed.
On the Advanced tab, click on Environment Variables.
The Environment Variables dialog is displayed.
Click New in the System variables panel.
The New Sytem Variable dialog is displayed.
Add http_proxy with the appropriate proxy information(http_proxy=http://proxy.example.org)
Unix / MAC:
导出http_proxy xxxxxxxxxxx:xxx