npm run serve时遇到如下错误:

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'

执行如下命令解决问题(ps:windows系统可能会出错):

export NODE_OPTIONS=--openssl-legacy-provider

Windows系统命令如下:

set NODE_OPTIONS=--openssl-legacy-provider
补充: