npm错误:digital envelope routines::unsupported

"scripts": {
    "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
    "lint": "vue-cli-service lint",
    "postinstall": "npm run build",
    "start": "node server.js"
  },

直接修改package.json文件,添加SET NODE_OPTIONS=–openssl-legacy-provider && 这部分。

Was this helpful?

0 / 0

发表回复 0