Short answer
Upgrade the build tool or the dependency that uses the old algorithm, so the app builds on current Node.js. As a temporary workaround, Node.js offers the --openssl-legacy-provider option, which you can pass through NODE_OPTIONS in the build command.
Why the build fails, and the fix
01
A build tool uses an algorithm OpenSSL 3.0 blocks
“it’s likely that your application or a module you’re using is attempting to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0” Node.js, Node.js 17.0.0 release notes
The error comes from your app or one of its modules asking for an algorithm or key size that OpenSSL 3.0 no longer allows by default. In our experience it is usually an older webpack-based build, such as an old Create React App setup, running on a newer Node.js.
02
The lasting fix: upgrade the build tooling
“we do anticipate some ecosystem impact due to tightened restrictions on the allowed algorithms and key sizes.” Node.js, Node.js 17.0.0 release notes
We upgrade the build tool and the packages that call the old algorithm, then confirm the build passes on the Node.js version the host uses. That removes the error instead of hiding it. Node.js expected this kind of breakage when it moved to OpenSSL 3.0.
03
The stopgap: the legacy provider option
“has been added to revert to the legacy provider as a temporary workaround for these tightened restrictions.” Node.js, Node.js 17.0.0 release notes
To unblock a deploy today, add --openssl-legacy-provider to NODE_OPTIONS for the build. Node.js calls this a temporary workaround, so plan the upgrade.
NODE_OPTIONS=--openssl-legacy-provider npm run build
Checked against the vendor’s docs on : Node.js 17.0.0 release notes; Node.js docs: Command-line API.
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
- from $450AI-Built App RescueA Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way.See scope and start
Related: Vercel Module not found · Build failed on Netlify or Vercel