Today We are Going To Solve opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ] in nodejs. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ] Error?
- How to Fix opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ] Error?
To Fix opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ] Error just Run this command. To solve your error just run this command in your terminal and your error will be solved.
export NODE_OPTIONS=--openssl-legacy-provider
- opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ]
To Fix opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ] Error just Change the build script. Here to solve this error just change the build script in your package.json just like below. This will solve your error. Hope this will help you!
{ "scripts": { "build": "export NODE_OPTIONS=--openssl-legacy-provider; gatsby build" } }
Solution 1 : Run this command
To solve your error just run this command in your terminal and your error will be solved.
export NODE_OPTIONS=--openssl-legacy-provider
Solution 2 : Change the build script
Here to solve this error just change the build script in your package.json just like below. This will solve your error. Hope this will help you!
{
"scripts": {
"build": "export NODE_OPTIONS=--openssl-legacy-provider; gatsby build"
}
}
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read This Solutions
- certificate verify failed: unable to get local issuer certificate
- VSCode: The Python path in your debug configuration is invalid
- Module not found: Error: Can’t resolve ‘fs’ in
- Building wheel for numpy (pyproject.toml)
- UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte