报错提示
opensslErrorStack: [
'error:03000086:digital envelope routines::initialization error',
'error:0308010C:digital envelope routines::unsupported'
],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
安装 nvm:在命令行中输入以下命令来安装 nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
下载低版本的node
nvm install 12.22.1
切换node 版本
nvm use 12.22.1
查看node 版本
node -v
重新运行项目
npm run dev