解决error:03000086:digital envelope routines::initialization error

在package.json里添加这两行代码

"scripts": {
    "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",

    "build": "SET NODE_OPTIONS=--openssl-legacy-provider &&vue-cli-service build",

  },
posted @ 2022-12-04 13:18  yangstar  阅读(180)  评论(0编辑  收藏  举报