In my current project, which combines vue and laravel, I encountered an issue when trying to run the production command:
npm run prod
The error message that appeared was:
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v17.9.1
After searching on Google for a solution, I added the following lines to the scripts section of the package.json file:
"serve": "vue-cli-service --openssl-legacy-provider serve",
"build": "vue-cli-service --openssl-legacy-provider build",
"lint": "vue-cli-service --openssl-legacy-provider lint"
Unfortunately, this did not resolve the issue. Can someone provide guidance on how to fix this problem?
For reference, here is my updated package.json file: