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

Here are two options now –

  1. Try to uninstall Node.js version 17+ and reinstall Node.js version 16+

You can re-install the current LTS Node.js version from their Official site. Or more specific downloads from here;

You can use NVM (Node Version Manager)

  • Linux and Mac users can use this nvm package link
  • Windows users can use this nvm package link
  1. Open a terminal and paste these as described:

Linux and macOS (Windows Git Bash)-

export NODE_OPTIONS=--openssl-legacy-provider

Windows command prompt-

set NODE_OPTIONS=--openssl-legacy-provider

Windows PowerShell-

$env:NODE_OPTIONS = "--openssl-legacy-provider"

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)