-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
nodejs 17: digital envelope routines::unsupported #14532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
workaround: export NODE_OPTIONS=--openssl-legacy-provider |
The same situation is also with |
Yes, marked as critical |
We will not update that in webpack 4. |
For webpack 4 solutions:
|
hmm... We can't really automatically fallback to a different hashing algorithm, since this would break the determinism of builds (builds should be equal independent of node.js version). We are planning to migrate to a different hash function anyway for webpack 6. So currently you will have to use Seems like the need to release a new major becomes more pressing... |
To be honestly it is very strange from Node.js developers, no deprecation messages, they just remove it... and break a lot of packages |
node.js 17 uses OpenSSL3 which have changed code for initialization context of md family (including md4): But I agree that node.js could have warned you in advance, given that you are one of the biggest consumers. |
where should this be added? |
@FSM1 : if you use |
In my experience, this issue is occur when i tried to serve angular app (mine is v11.0.0) with node 18.19.1.
and still failing, try to switch your node version to 16.XX.X (mine is 16.20.2). Switching node version is always work for me to resolve this issue (i run many version of multi project with different angular version). |
It appears that a "fix" for this HAS been applied to webpack@4. #17628 changed the code so that effectively calls to |
I'm still getting this error, so why is it closed? I have just followed the tutorial in https://rustwasm.github.io/docs/book/game-of-life/hello-world.html (I used edit: OK, the |
Dropping a comment here just in case someone else still runs into similar issues. We were suddenly getting these errors on Node.js 16.20.2 and Webpack 4.47.0 after switching OS from Centos 7 to Rocky Linux 9. Turns out that the Node 16.20.2 available in the Rocky Linux 9 repo includes backports to the SSL vulnerability fixes that cause these errors in the first place. The fix that was made into Webpack to make it work with Node >=18 explicitly check that the running node version is 18 or higher, thus it wont work with the patched Node v16 that Rocky Linux provides. Our fix was simply to update to Node >=18. |
…eb-angular` ### What is this PR for? Specify the Node.js engine version below 17 in the `zeppelin-web-angular` package.json file to avoid errors related to Node.js 17+ and OpenSSL in Webpack. If we upgrade the Angular version to 13+ in the future, we will be able to use Node.js 17+ as well. [Reference: nodejs 17: digital envelope routines::unsupported · Issue #14532 · webpack/webpack](webpack/webpack#14532) ### What type of PR is it? Improvement ### Todos ### What is the Jira issue? * [ZEPPELIN-6110] ### How should this be tested? 1. Set your Node.js version to 17+ 2. Execute `npm run postinstall` in `zeppelin-web-angular` ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? N * Is there breaking changes for older versions? N * Does this needs documentation? N Closes #4848 from seung-00/ZEPPELIN-6110. Signed-off-by: Cheng Pan <[email protected]>
…eb-angular` ### What is this PR for? Specify the Node.js engine version below 17 in the `zeppelin-web-angular` package.json file to avoid errors related to Node.js 17+ and OpenSSL in Webpack. If we upgrade the Angular version to 13+ in the future, we will be able to use Node.js 17+ as well. [Reference: nodejs 17: digital envelope routines::unsupported · Issue #14532 · webpack/webpack](webpack/webpack#14532) ### What type of PR is it? Improvement ### Todos ### What is the Jira issue? * [ZEPPELIN-6110] ### How should this be tested? 1. Set your Node.js version to 17+ 2. Execute `npm run postinstall` in `zeppelin-web-angular` ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? N * Is there breaking changes for older versions? N * Does this needs documentation? N Closes #4848 from seung-00/ZEPPELIN-6110. Signed-off-by: Cheng Pan <[email protected]> (cherry picked from commit 17e1e73) Signed-off-by: Cheng Pan <[email protected]>
In my case I just wanted to fix this problem for a specific project since my other projects rely on Node17 and i cannot downgrade |
the NODE_OPTIONS works for me, but without it i keep getting the problem even if with Node22 |
When using latest node, webpack produces an error, Error: error:0308010C:digital envelope routines::unsupported webpack/webpack#14532 This is due to the webpack version being 5.53.0 when running npm install. The error is fixed in 5.61.0 by the following merged pull request, webpack/webpack#14584 https://github.com/webpack/webpack/releases/tag/v5.61.0 When I set 5.61.0 as the minimum I now get 5.72.0 version which is latest. Build completes without error.
NODE_OPTIONS does NOT work for me...
Please reopen this ticket |
I can confirm the issue now reappears in node 22. |
Also reappeared for me using node 22.14.0 |
1 similar comment
Also reappeared for me using node 22.14.0 |
We don't use |
Bug report
What is the current behavior?
Other relevant information:
webpack version: 5.59.0
Node.js version: 17.0.0
Operating System: linux x64
The text was updated successfully, but these errors were encountered: