문제 해결 과정을 기록한 것으로
하단의
문제 해결 방법 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
'Framework > react' 카테고리의 다른 글
[React] 게임만들기 Board에서 props 받아서 Square에 전달 (0) | 2024.05.22 |
---|---|
npm으로 react 프로젝트 생성하기 (0) | 2024.05.21 |
[React] 회원가입 창 만들기. React Router의 useNavigate 훅 사용해서 navigate로 새로운 페이지 이동하기. (1) | 2023.12.22 |
[React] useEffect 사용해보기, 의존성에 따른 실행차이. (0) | 2023.12.14 |
[React]useState 사용해보기// error해결 :input is a void element tag and must neither have `children` nor (0) | 2023.12.12 |