yarn run *** 报错 error:0308010C:digital envelope routines::unsupported

Published on in 程序人生 with 0 views and 0 comments

在package.json中添加下列代码即可

set NODE_OPTIONS=--openssl-legacy-provider && 

实例:

  "scripts": {
    "pre": "cnpm install || yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ",
    "serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "build:test": "vue-cli-service build --mode test",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },

标题:yarn run *** 报错 error:0308010C:digital envelope routines::unsupported
作者:wenyl
地址:http://www.wenyoulong.com/articles/2023/02/20/1676863834169.html