close

[Fixed] opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ]

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.

How to Fix opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ] Error?

  1. 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

  2. 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

Leave a Comment