2016-12-15 2 views
0

프록시 인증 문제로 인해 cntml을 사용하여 cntml 프록시를 통해 프록시를 리디렉션합니다.npm 뒤에서 cntml 프록시가 작동하지 않음

npm config set proxy http://localhost:1111 
npm config set https-proxy http://localhost:1111 
npm config set registry http://registry.npmjs.org 

CNTML가 매우 빠르고, 예를 들어 작동 :는 NPM 설치 내가이와 NPM 프록시를 설정

(퀵 스타트 프로젝트에 시간 소요) 몹시 느린 크롬. npm이 실패하게하는 원인은 무엇입니까?

답변

0

회사 프록시에서 작업하는 경우 host : port를 제공하는 것만으로는 충분하지 않을 수 있습니다. 나는 다음 단계의 성공을 발견했다 :

다음
npm config set strict-ssl false 

npm config set registry "http://registry.npmjs.org/" 

에서 % 5C 프록시 사용의 예입니다 백 슬래시의 교체이며, 여기에

npm config set proxy http://<domain>%5C<username>: 
<password>@<host>:<port> 

npm config set https-proxy http://<domain>%5C<username>: 
<password>@<host>:port 

npm install <npm_package> 

중요하다

npm config set proxy http://MyDomain%5CMyUsername: 
[email protected]:1234