Vscode报错: error:0308010C:digital envelope routines::unsupported错误记录解决
因为安装了新版本的node才报的错误:node版本: v18.14.0
运行npm run serve 报错
解决办法:
在package.json的scripts中新增
SET NODE_OPTIONS=--openssl-legacy-provider
"scripts": {
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
}
标签:0308010C,serve,routines,envelope,unsupported,报错,digital
From: https://www.cnblogs.com/StevenYF/p/17116102.html