An unexpected error occurred: "https://경로: unable to verify the first certificate 오류 해결

React npm/yarn install 설치 시 An unexpected error occurred 오류
React 또는 리눅스에서 npm / yarn install 설치 시 An unexpected error occurred 오류가 발생할 수 있다.
이 오류는 SSL 관련 오류로 해결 방법을 알아보도록 하자.
yarn 설치 시 오류가 발생된 로그
PS D:\react> yarn add react-router-domyarn add v1.22.19info No lockfile found.[1/4] Resolving packages...error An unexpected error occurred: "https://registry.yarnpkg.com/react-router-dom: unable to verify the first certificate".info If you think this is a bug, please open a bug report with the information provided in "D:\\react\\yarn-error.log".info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
위와 같이 An unexpected error occurred 오류가 발생 되었다면 strict-ssl false 옵션 명령어를 실행해서 해결할 수 있다.
yarn 설치 시 An unexpected error occurred 오류 해결
PS D:\react> yarn config set "strict-ssl" falseyarn config v1.22.19success Set "strict-ssl" to "false".Done in 0.04s.
