2015-07-03 44 views
0

我配置詹金斯構建服務器,我只是想這樣做: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獲取無法連接到服務器?

+0

它適合我。當你做'git fetch'時,你可以發佈你的腳本嗎? –

+0

@HimanshuMishra我在日誌中看到git fetch。這裏:npm ERR! git fetch -a origin(https://github.com/yaronn/xmldom.git) – Moozz

回答

0
git fetch -a origin (https://github.com/yaronn/xmldom.git) 

不是git命令。如果這是你在代碼中使用的,那麼你需要改變它。

git remote add origin https://github.com/yaronn/xmldom.git 
git fetch -a origin 

希望有幫助。

+0

但我該如何改變它?它會在npm install命令中調用。 – Moozz

+0

我無法回答有關配置npm install的信息。我鼓勵你問一個與'如何配置npm install'相關的新問題。 –