今天搞了一下vue3 + Typescript的项目,
把node 升级到了最新版
运行项目报错
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
查了一下 以后 是因为node 版本过高
在命令行输入下面命令可以解决
set NODE_OPTIONS=--openssl-legacy-provider
项目跑起来了