인디노트

Angular 빌드시 unsupported at new Hash 에러 나오면 본문

정보

Angular 빌드시 unsupported at new Hash 에러 나오면

인디개발자 2023. 1. 22. 08:11
⠋ Generating browser application bundles...(node:1883) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
⠹ Generating browser application bundles (phase: building)...node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:140:10)
    at module.exports (/Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/webpack/lib/NormalModule.js:417:16)
    at /Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/webpack/lib/NormalModule.js:452:10
    at /Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/webpack/lib/NormalModule.js:323:13
    at /Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/kgy/Desktop/SDD2/FIREBASE/appres-dev/node_modules/babel-loader/lib/index.js:59:103
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

 

위와 같은 에러가 나오면

export NODE_OPTIONS=--openssl-legacy-provider

를 수행 후 build 하면 된다.

 

 

반응형
Comments