cklwblove / blog

记录日常遇到的bug
1 stars 0 forks source link

Error message "error:0308010C:digital envelope routines::unsupported" #109

Open cklwblove opened 1 year ago

cklwblove commented 1 year ago
  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 - https://github.com/nvm-sh/nvm Windows users can use this nvm package - https://github.com/coreybutler/nvm-windows

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

Reference link.

--- https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported