运行旧项目时,报错:Error: error:0308010C:digital envelope routines::unsupported
主要原因:node版本太高了

解决方法:package.json 包文件中,添加代码 set NODE_OPTIONS=--openssl-legacy-provider && ,然后运行 npm run serve

注:linux环境下,将 set 改为 export 。
运行旧项目时,报错:Error: error:0308010C:digital envelope routines::unsupported
主要原因:node版本太高了
解决方法:package.json 包文件中,添加代码 set NODE_OPTIONS=--openssl-legacy-provider && ,然后运行 npm run serve
注:linux环境下,将 set 改为 export 。