我配置詹金斯構建服務器,我只是想這樣做:Git的克隆作品,但混帳讀取發生超時
"C:\Program Files (x86)\nodejs\npm.cmd" install --production --msvs_version=2013
包裹有一件是https://github.com/yaronn/xmldom.git/
出現此錯誤消息時運行安裝NPM:
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No license field.
npm ERR! git fetch -a origin (https://github.com/yaronn/xmldom.git) fatal: unable to access 'https://github.com/yaronn/xmldom.git/': Failed to connect to github.com port 443: Timed out
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production" "--msvs_version=2013"
npm ERR! node v0.10.36
npm ERR! npm v2.12.1
npm ERR! code 128
npm ERR! Command failed: fatal: unable to access 'https://github.com/yaronn/xmldom.git/': Failed to connect to github.com port 443: Timed out
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\Jenkins\jobs\AppServer-NodeJS-Modules\workspace\npm-debug.log
我試着加入git clone https://github.com/yaronn/xmldom.git/
命令故宮安裝命令之前,XMLDOM克隆到我的工作區成功。
這是我最後的腳本:
git config --global http.proxy myproxy-here
git config --global https.proxy myproxy-here
git config --global url."https://".insteadOf git://
git clone https://github.com/yaronn/xmldom.git/
"C:\Program Files (x86)\nodejs\npm.cmd" install --production --msvs_version=2013
爲什麼混帳克隆做工精細而Git獲取無法連接到服務器?
它適合我。當你做'git fetch'時,你可以發佈你的腳本嗎? –
@HimanshuMishra我在日誌中看到git fetch。這裏:npm ERR! git fetch -a origin(https://github.com/yaronn/xmldom.git) – Moozz