vue运行npm run serve时,返回Error: error:0308010C:digital envelope routines::unsupported,可以在package.json增加配置,set NODE_OPTIONS=--openssl-legacy-provider &&
"scripts": {
"serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build": "vue-cli-service build"
},