반응형

1. 에러 로그

 - yarn을 사용하여 install 을 하다보면 다음과 같은 문구를 출력하며 오류가 발생하는 경우가 있다.

PS D:\> yarn install
yarn install v1.22.22
[1/4] Resolving packages...
error Error: self-signed certificate in certificate chain
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 
2. 해결 방법

 - 해당 문제는 SSL 인증서 문제로 인증서 검사를 진행하지 않겠다는 설정을 진행하여 해당 문제를 해결 할 수 있다.

yarn config set "strict-ssl" false
PS D:\> yarn config set "strict-ssl" false
yarn config v1.22.22
success Set "strict-ssl" to "false".
Done in 0.08s.

 

SSL 인증서 검사를 진행하지 않도록 한 이후 정상적으로 설치가 진행이 된다.

'Web Service' 카테고리의 다른 글

nginx 대용량 파일 업로드 설정  (0) 2022.08.18
Apache 2.4 설치 및 PHP 설치 구성  (0) 2019.09.17

+ Recent posts