vue npm run serve 错误代码:ERR_OSSL_EVP_UNSUPPORTED
super
2023-03-13 21:51
![views](/static/super/images/icon/evaluate-9a.png)
code: 'ERR_OSSL_EVP_UNSUPPORTED'
方法1:
在package.json中的scripts
修改serve与build
![](/uploads/article/20230313/e17887203b63a1b9e49c71d96059e8f7.png)
修改为:
![](/uploads/article/20230313/b74041b1537da948e3482ee39a0f1bf4.png)
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
方法2:
将node.js降到17以下
![](/uploads/article/20230313/96ead7dabd5391360f1f667f061e3884.png)
0 条讨论