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
哦,這很有趣。但如果你能夠以某種方式解決這個問題,那麼很好。此外,只是一個友好的建議,不要在公共論壇上發佈憑證或公司代理詳細信息:) –