Error: error:0308010C:digital envelope routines::unsupported

2023. 10. 14. 16:22각종 에러 모음

반응형

react webpack 빌드 중 발생했던 오류이다.

 

webpack 옵션 중 mode를 producton으로 설정만 하면 발생했다.

 

검색하던 와중에 발견한 stackoverflow 글 중 해결 방법이 있었다.

https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

 

Error message "error:0308010C:digital envelope routines::unsupported"

I created the default IntelliJ IDEA React project and got this: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHa...

stackoverflow.com

 

문제는 node 버전 문제였는데 나는 작성 당시 최신이던 18.8.0LTS 버전으로 사용 중 이였고 해당 버전에서 발생하는 문제

였고 node 버전을 16으로 내려줄 필요가 있었는데 간단한 node manager 프로그램이 있어서 편하게 변경했다.


https://github.com/coreybutler/nvm-windows

 

GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go.

A node.js version management utility for Windows. Ironically written in Go. - GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go.

github.com

 

해당 프로그램을 다운 받은 후

nvm version
> 1.11.1

 

입력 후 정상 설치 되었는지 확인 한 후

nvm list
> *18.18.0 (Currently using 64-bit executable)

으로 현재 사용하고 있는 node 버전을 알 수 있다.

나는 16.20.2LTS 버전으로 변경 해야 함으로 

nvm install 16.20.2

입력 후 새로운 버전을 설치 하고

nvm use 16.20.2

로 노드 버전을 스위칭 해줬다.


node 버전만 변경해줬는데 정상동작 한다.

반응형