-
Notifications
You must be signed in to change notification settings - Fork 12k
Error: error:0308010C:digital envelope routines::unsupported with Node.js 16.14.0 #23134
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
I wasn't able to replicate this with Node.JS 16.15.0
Are you providing the
|
I am seeing the same behavior on Fedora 36 with Node 16.14.0 and Node 16.15.0. That node options setting gives me the same invalid errors. Only way I was able to solve was to upgrade to angular cli to rc 14. Angular CLI: 13.3.5
|
|
The newer version of `babel-loader` contains a fix for its hash function usage that will cause it to not use MD4 on Node.js versions that no longer support that hashing algorithm. Fixes angular#23134
The newer version of `babel-loader` contains a fix for its hash function usage that will cause it to not use MD4 on Node.js versions that no longer support that hashing algorithm. Fixes #23134
Closed via #23168 |
Thanks. It's working! ❤️ |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Didn't check.Description
After initializing the project with ng new project_name (no routing enabled, scss selected as css preprocessor) I tried to run the project with ng serve. After that I got error: error:0308010C:digital envelope routines::unsupported. After searching on the internet for a solution I found that this error occurs with node 17+. To solve the problem I was advised either to roll back to a previous version of node.js, or to add --openssl-legacy-provider flag. I found that my version of node.js is 16.14.0. I tried to write the flag with the NODE_OPTIONS=--openssl-legacy-provider environment variable, to which I received a complaint that such a flag is not allowed. Then I wrote the following command: ng servce --openssl-legacy-provider, to which I got the same complaint.🔬 Minimal Reproduction
ng new hello_angular cd hello_angular ng serve
https://github.com/t3m8ch/angular-error
🔥 Exception or Error
🌍 Your Environment
Fedora Linux 36
Openssl 3.0.2
Node.js installed via dnf package manager
The text was updated successfully, but these errors were encountered: