Due to changes on Node.js v17, --openssl-legacy-provider
was added for handling key size on OpenSSL v3.
You somehow have installed the latest version of node.
- Restore your previous version of nodejs.
- Go and manually remove the node dependency(e.g. “node”:17.4.3) from package.json
and packagelock.json. - Delete node_modules folder and use
npm install
to reinstall node_modules.