반응형


1. 에러 상황

Nuxt.js App 기동 중 다음 에러 발생했습니다.

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/Users/parkjinseong/learn-nuxt/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/parkjinseong/learn-nuxt/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/parkjinseong/learn-nuxt/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/parkjinseong/learn-nuxt/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/parkjinseong/learn-nuxt/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/parkjinseong/learn-nuxt/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/parkjinseong/learn-nuxt/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/Users/parkjinseong/learn-nuxt/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:205:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

2. 에러 원인

Nuxt.js App 에서 지원하는 Node.js 버전과 상이한 버전 사용 중으로 에러 발생했습니다.


3. 에러 해결책

Node.js 버전 변경으로 해결했습니다.

Node.js 버전을 변경하는 방법은 여러가지가 있습니다.

굳이 기설치된 버전을 삭제하고, 다시 설치할 필요없이 Node.js 버전 관리 App인 NVM 설치 후 버전을 변경하고 에러를 해결했습니다.

 

 

 

행복한 하루 보내세요.

감사합니다.

반응형

+ Recent posts