Linux/Proxy

Proxy setting, npm (ubuntu 18.04)

driz2le 2020. 4. 6. 21:28

npm에서 Proxy 세팅 방법

 

□ npm config에서 설정

아래와 같이 npm config를 통해서 설정이 가능하다.

$ npm config set proxy http://10.10.10.10:8080
$ npm config set https-proxy https://10.10.10.10:8080
$ npm config set strict-ssl false
$ npm config set registry http://registry.npmjs.org/

 

□ npm config 정보 확인

$ npm config list

 

□ npm config 정보 저장 위치

~/.npmrc 파일에 저장된다.

$ vi ~/.npmrc

 

 



반응형