执行:npm run serve
出现:error:0308010C:digital envelope routines::unsupported
原因:npm 版本升级
解决:package.json 增加配置
"scripts": { "serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build": "vue-cli-service build" },
执行:npm run build 同样出现问题
解决:Windows下
set NODE_OPTIONS=--openssl-legacy-provider
npm run build
标签:npm,0308010C,error,run,routines,unsupported,build,digital From: https://www.cnblogs.com/yu121/p/17854186.html