mac zsh

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

슈팅스타제제 2021. 10. 26. 09:54

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

 

error:0308010C:digital envelope routines::unsupported

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

stackoverflow.com

react 프로젝트를 실행했을 때, 발생한 에러이다. 

아래 커맨드를 통해 환경변수 설정하여 해결했다. 

export NODE_OPTIONS=--openssl-legacy-provider