회사에서 yarn install 에러

minkyeongJ·2022년 12월 6일
0

개발 tips

목록 보기
16/20

에러메시지

wm-bd000013@WM-BD000013ui-iMac ~ % yarn global add evn-cmd
yarn global v1.22.19
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/evn-cmd: self-signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "/Users/wm-bd000013/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

해결 시도

해결이 되었으나 다시 문제 발생

wm-bd000013@WM-BD000013ui-iMac ~ % yarn global add env-cmd           
yarn global v1.22.19
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/env-cmd: self signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "/Users/wm-bd000013/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
  • yarn config set "strict=ssl" false 하니까 설치됨
    • 나는 전역에서 글로벌하려고 했는데 멘토님은 필요한 레포에서 설정하심
    • global은 따로 설정 안하심

문제가 발생하는 이유는 뭘까?

  • 회사 프록시와 인증서 문제
  • 더 디테일한 이유
    • https://melonicedlatte.com/2022/01/03/184100.html
    • 이 문제는 해당 사이트에서 보낸 인증서가 아닌 회사 인증서가 npm 을 사용하는 컴퓨터로 전송되어 발생하는 에러라고 합니다. 사내 보안을 위하여 사용하는 프록시 서버가 이를 유발한다고 하네요.
profile
멋진 프론트엔드 개발자를 위하여!

1개의 댓글

comment-user-thumbnail
2023년 11월 9일

감사해요! 덕분에 해결했어요!

답글 달기