Fixing “node: –openssl-legacy-provider is not allowed in node_options” error

Fixing “node: –openssl-legacy-provider is not allowed in node_options” error

Autopublished from RSS Original article

es6 modules nodejs

I recently ran into the “node: –openssl-legacy-provider is not allowed in node_options” error while working with Node 17. It occurs when the environment variable is set with the value –openssl-legacy-provider. I had set that value for another project I tried recently, which conflicted with this project. Since we know what is causing the error, the simple fix would be to remove that value.

Source