본문 바로가기

IT/React

NodeJS npm proxy config (.npmrc)

조르지노가 전달해준 npm proxy issue 해결을 위한 설정파일.

윈도우의 경우 사용자계정 환경변수(%USERPROFILE%)에 .npmrc 파일이 있다.

해당 파일을 다음의 코드로 덮어씌워주니 프록시 문제 해결됨.

다만 별도의 기 설정내역이 존재한 경우는 덧붙이거나 적절히 수정해야 할 것임.

proxy=http://my-ip-address:my-port-number
https-proxy=http://my-ip-address:my-port-number
strict-ssl=false
registry=http://registry.npmjs.org/