IT 톺아보기/기술 공부

[Window] 사내망 등의 이유로 yarn 설치가 안되는 경우

파초우 2023. 6. 16. 13:28
반응형

목차

  1. 개요
  2. 문제
  3. 해결책

문제

yarn package install을 하는데 사내 프록시와 인증서로 인해 설치가 되지 않는 경우

Error

사내 망에서 yarn을 설치하는 경우

yarn install

을 실행하면

error An unexpected error occurred: "https://registry.yarnpkg.com/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz: self-signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "...\\yarn-error.log".

같은 에러가 뜨는 것을 볼 수 있다.

해결책

위 문제를 해결하기 위해

yarn config set "strict-ssl" false

명령어를 사용하면 yarn package 설치가 잘되는 것을 볼 수 있다.

반응형