openssl error stack:
P粉851401475
2023-08-24 10:24:11
<p><pre class="brush:php;toolbar:false;">opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}</pre>
<p>I get this error when I switch to node v18</p>
Perform the following steps in the current application directory on the terminal:
Install the npm-check-updates package globally to do exactly what its name says.
This will display the dependency side by side with its new version (it is recommended that you upgrade to) the version listed in (the arrow points to) the package.json file in the current directory.
This will update your package.json file with the new version listed and prepare your application for the next step (correct update).
or
Both of these will eventually install new updates; fixing the problem.
Note: I have used
I ran into this issue using an old React.js app cloned from github but didn't want to downgrade to an older node version since I just upgraded from node v14 to v18.13.0. Again, downgrading is not a safe option. There are many reasons for updating; most of the time, "security reasons", especially in the JavaScript world.
Now there are two options -
You can reinstall the current LTS Node.js version from its official website . Or download more specific content from here;
You can use NVM (Node Version Manager)
Linux and macOS (Windows Git Bash)-
Windows Command Prompt-
Windows PowerShell-