当前位置:   article > 正文

解决错误error:0308010C:digital envelope routines::unsupported at new Hash_error: error:0308010c:digital envelope routines::u

error: error:0308010c:digital envelope routines::unsupported at new hash (no

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at D:\Vue\qx-ty-fore\guanli\node_modules\compression-webpack-plugin\dist\index.js:243:42 at CompressionPlugin.compress (D:\Vue\qx-ty-fore\guanli\node_modules\compression-webpack-plugin\dist\index.js:284:9) at D:\Vue\qx-ty-fore\guanli\node_modules\compression-webpack-plugin\dist\index.js:305:12 at _next1 (eval at create (D:\Vue\qx-ty-fore\guanli\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:14:17) at eval (eval at create (D:\Vue\qx-ty-fore\guanli\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:33:1) at D:\Vue\qx-ty-fore\guanli\node_modules\copy-webpack-plugin\dist\index.js:91:9

启动脚本package.json中加入如下即可

本地Windows配置
"scripts": { "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode development" }

Linux配置

"scripts": { "dev": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode development" }
或者试下

"scripts": { "dev": "NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode development" }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/411108
推荐阅读
相关标签
  

闽ICP备14008679号