当前位置:   article > 正文

95% emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported E

95% emitting compressionplugin error error: error:0308010c:digital envelope

95% emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported
Error: error:0308010C:digital envelope routines::unsupported
在这里插入图片描述
解决方法:
修改 package.json 文件的 scripts 的 dev
切换成 SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve

  "scripts": {
    "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "start": "vue-cli-service serve",
    "build:prod": "vue-cli-service build",
    "build:stage": "vue-cli-service build --mode staging",
    "preview": "node build/index.js --preview",
    "lint": "eslint --ext .js,.vue src"
  },
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/394638
推荐阅读
相关标签
  

闽ICP备14008679号