Skip to content

Cannot build: digital envelope routines::unsupported #65

@rweichler

Description

@rweichler

Tried this on FreeBSD (arm64) and macOS (arm64)

I googled "digital envelope routines" unsupported and found this stackoverflow post which suggests this is because of some recent security concern

$ webpack-cli build
node:internal/crypto/hash:79
  this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/util/createHash.js:90:53)
    at Compilation.createHash (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compilation.js:2272:16)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compilation.js:1286:9
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/Hook.js:154:20)
    at Compilation.seal (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compilation.js:1242:27)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compiler.js:546:17
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:11:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compilation.js:1093:12
    at errorAndCallback (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compilation.js:945:6)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/Compilation.js:978:14
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/NormalModuleFactory.js:397:22
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/NormalModuleFactory.js:130:21
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/NormalModuleFactory.js:224:22
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/neo-async/async.js:2825:7
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/neo-async/async.js:6886:13
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/webpack/lib/NormalModuleFactory.js:214:25
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:184:12
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:238:5
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:37:5
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:238:5
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:238:5
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:12:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:238:5
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:48:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/ModuleKindPlugin.js:23:37
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:238:5
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/Resolver.js:238:5
    at eval (eval at create (/Users/reed/code/gh/fengari-lua/fengari-web/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:15:1)
    at /Users/reed/code/gh/fengari-lua/fengari-web/node_modules/enhanced-resolve/lib/forEachBail.js:30:14 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v22.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions