ethereum/nxbn-website

OpenSSL3 breaking change

Closed this issue · 0 comments

When running the development script yarn develop for local building, I now get this error:

Error: error:0308010C:digital envelope routines::unsupported

Some quick googling suggests that it's a node.js 17 issue with openSSL v3.0

The solution presented is to set NODE_OPTIONS env to --openssl-legacy-provider while running development server.

On linux:
export NODE_OPTIONS=--openssl-legacy-provider

This works fine for me, but I'm unsure what the best practices are for modifying the scripts to work for anyone.