Framework/react
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ] 에러 해결 과정
딸기뚜왈기
2024. 1. 10. 10:36
문제 해결 과정을 기록한 것으로
하단의
문제 해결 방법 1 을 하지 말고,
문제 해결 방법 2 만 해도 문제는 해결된다.
문제 해결 방법1 은 하지 않는 게 좋다.
npm start 에러 확인
에러 내용 확인
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
문제 해결 방법 1
- Open a terminal and paste these as described:
Linux and macOS (Windows Git Bash)-
export NODE_OPTIONS=--openssl-legacy-provider
Windows command prompt-
set NODE_OPTIONS=--openssl-legacy-provider
Windows PowerShell-
$env:NODE_OPTIONS = "--openssl-legacy-provider"
문제 해결. (근본적인 해결책 x)
문제 발생 2.
VS code 실행할 때마다 명령어를 입력해줘야 한다.
근본적인 해결이 되지 않았다.
문제 해결 방법 2. -package.json 수정
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
}
문제해결 완료
※참조
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ]
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } I get...
stackoverflow.com