opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } Node.js v17.4.0
This error occurs when executing npm run service. Currently, node is at version v16.14.0, but I still get the same errors when I keep reinstalling them, because these errors occur frequently in node v17.
"scripts": { "serve": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", "lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint" },
If you use the above code, it can be executed, but there is a problem again when using docker to build the image. Is there any solution?
In Windows, I was able to resolve this error using: