2016-09-14 3 views
0

내 프로젝트 (Windows 7 시스템)에 덤프 4를 설치하려고합니다. 내가 npm install gulp을 실행할 때 나는이 오류 얻을npm 설치 오류 : ssh : 호스트 github.com 포트 22에 연결 : 연결 시간이 초과되었습니다.

"gulp": "gulpjs/gulp#4.0" 

:처럼 그 의존성 내 package.json 보인다

npm ERR! ssh: connect to host github.com port 22: Connection timed out 
npm ERR! fatal: Could not read from remote repository. 
npm ERR! 
npm ERR! Please make sure you have the correct access rights 
npm ERR! and the repository exists. 
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 verb exit [ 1, true ] 

을하지만 잘 작동 GitHub의에서 저장소를 복제 할 때

git clone https://github.com/gulpjs/gulp.git 

회사 방화벽 뒤에이 명령을 실행하고 있습니다. 따라서 내 환경 변수에 프록시를 설정했습니다.

npm config set proxy http://proxy.company.com:8080 

npm config set https-proxy http://proxy.company.com:8080 

내가뿐만 아니라 환경 변수에서 같은 시도 :
http_proxy : http://proxy.company.com:port 
https_proxy : https://proxy.company.com:port 

은 또한 설정했습니다.

는 또한 시도 : 위의

npm config set proxy http://login:[email protected]:port 

npm config set https-proxy http://login:[email protected]:port 

없음 작동하는 것 같다 없습니다. 이 문제를 어떻게 해결할 수 있습니까?

답변

0

나는 동일한 문제가있었습니다. 이 명령을 실행하고 npm install을 다시 실행하십시오. 이렇게하면 귀하의 모든 URL이 https : //로 시작하여 귀하를 위해 효과가있는 것으로 보입니다.

git config --global url."https://".insteadOf git://