1
我正在尝试在Windows平台中的科尔多瓦创建一个新的html css项目。在科尔多瓦创建新项目时出错
cordova create hello com.example.hello HelloWorld
给出以下利用
npm config set https-proxy http://<username>:<password>@domain.tld:<port_number>
我做错了什么输出
Creating a new cordova project with name "HelloWorld" and id "com.example.hello"
at location "D:\codpro\hello"
Downloading cordova library for www...
Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
at ClientRequest.onError (C:\node\node_modules\cordova\node_modules\cordova-
lib\node_modules\request\node_modules\tunnel-agent\index.js:159:17)
at ClientRequest.g (events.js:180:16)
at ClientRequest.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1547:9)
at Socket.emit (events.js:95:17)
at net.js:833:16
at process._tickCallback (node.js:419:13)
我配置的代理?
确保您的密码没有符号'@'。如果是这样,你将不得不使用'%40'而不是它。 –
我的密码包含@并且它与@一起工作。有代理问题,我已经通过设置npm代理解决了。 – user3306669
哦,这很有趣。但如果你能够以某种方式解决这个问题,那么很好。此外,只是一个友好的建议,不要在公共论坛上发布凭证或公司代理详细信息:) –