question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nodejs 17: digital envelope routines::unsupported

See original GitHub issue

Bug report

What is the current behavior?

[webpack-cli] Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at BulkUpdateDecorator.hashFactory (/opt/src/node_modules/webpack/lib/util/createHash.js:155:18)
    at BulkUpdateDecorator.digest (/opt/src/node_modules/webpack/lib/util/createHash.js:80:21)
    at /opt/src/node_modules/webpack/lib/DefinePlugin.js:595:38
    at Hook.eval [as call] (eval at create (/opt/src/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:100:1)
    at Hook.CALL_DELEGATE [as _call] (/opt/src/node_modules/tapable/lib/Hook.js:14:14)
    at Compiler.newCompilation (/opt/src/node_modules/webpack/lib/Compiler.js:1053:26)
    at /opt/src/node_modules/webpack/lib/Compiler.js:1097:29
    at Hook.eval [as callAsync] (eval at create (/opt/src/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Other relevant information: webpack version: 5.59.0 Node.js version: 17.0.0 Operating System: linux x64

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:320
  • Comments:231 (38 by maintainers)

github_iconTop GitHub Comments

860reactions
akornatskyycommented, Oct 19, 2021

workaround:

export NODE_OPTIONS=--openssl-legacy-provider
243reactions
FSM1commented, Oct 22, 2021

workaround:

export NODE_OPTIONS=--openssl-legacy-provider

where should this be added?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error message "error:0308010C:digital envelope routines ...
This error is because node.js 17 uses OpenSSL3, which has changed code for initialization context of md family (including md4), and this is...
Read more >
error:0308010c:digital envelope routines::unsupported [Node ...
You are likely getting this error because of 2 main reasons: ... The error can also occur because you're using Node 17. How...
Read more >
How to Fix the Error Error:error:0308010C:digital envelope ...
Error: error:0308010C:digital envelope routines::unsupported. With Node.js v17+ supporting OpenSSL 3.0, algorithms like MD4 have been ...
Read more >
error:0308010C:digital envelope routines::unsupported [Fixed]
The "error:0308010C:digital envelope routines::unsupported" occurs because Node.js v17 and later use OpenSSL v3.0 which has had breaking changes. To resolve the ...
Read more >
How to fix the digital envelope routines::unsupported error on ...
If you hit an ERR_OSSL_EVP_UNSUPPORTED error (like 0308010C:digital envelope routines::unsupported) in your application with Node.js 17, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found