본문으로 바로가기
반응형

node의 버전이 맞지 않아서 생기는 에러이며

현재 node 버전을 확인하고 다운그레이드를 한 후에 해당 명령어를 실행해주면 에러 클리어

오류코드

  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

 

 

해결방법

//Linux 및 macOS(Windows Git Bash)-
export NODE_OPTIONS=--openssl-legacy-provider

//Windows 명령 프롬프트-
set NODE_OPTIONS=--openssl-legacy-provider

//Windows PowerShell-
$env:NODE_OPTIONS = "--openssl-legacy-provider"
반응형