1
我無法使用Netbeans構建Hello world
cordova項目。我不得不使用公司防火牆來訪問互聯網。它是一個帶有端口81的IP地址。我使用Windows 8.1。由於代理無法與Netbeans建立`Hello world` cordova項目
我在npm,git和netbeans中配置了代理。雖然建設我有一個錯誤(完整日誌從輸出窗口):
cordova.cmd plugins
cordova.cmd -d plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
Calling plugman.fetch on plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git"
Fetching plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" via git clone
Running command: "c:\Program Files\Git\bin\git.exe" clone --depth=1 https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git C:\Users\KORALE~1\AppData\Local\Temp\git\1444040988889
Command finished with error code 128: c:\Program Files\Git\bin\git.exe clone,--depth=1,https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git,C:\Users\KORALE~1\AppData\Local\Temp\git\1444040988889
CordovaError: Failed to fetch plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: c:\Program Files\Git\bin\git.exe: Command failed with exit code 128 Error output:
Cloning into 'C:\Users\KORALE~1\AppData\Local\Temp\git\1444040988889'...
fatal: unable to access 'https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git/': Failed to connect to git-wip-us.apache.org port 443: Timed out
at C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:88:33
at _rejected (C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:797:24)
at C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:823:30
at Promise.when (C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1035:31)
at Promise.promise.promiseDispatch (C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:741:41)
at C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44
at flush (C:\Users\KoralewskiP\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
at doNTCallback0 (node.js:407:9)
at process._tickCallback (node.js:336:13)
而且當我運行CMD,從它的工作原理以及指令
"c:\Program Files\Git\bin\git.exe" clone --depth=1 https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git C:\Users\KORALE~1\AppData\Local\Temp\git\1444040988889
。
我也設置HTTP_PROXY環境變量並重新啓動Netbeans,但它也沒有幫助。
您是否嘗試過使用HTTPS_PROXY? –
@Harish - 我試過了,它有幫助。我想將您的答案標記爲已接受... – koral
謝謝! :) –