Solve the problem that npm run serve cannot start the project

The error is reported as follows opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'
insert image description here
Solution: Enter $env:NODE_OPTIONS="--openssl-legacy-provider"the following figure in the terminal
insert image description here

Guess you like

Origin blog.csdn.net/qq_42859450/article/details/128800899