opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v17.4.0
当执行npm运行服务时,会发生此错误。目前,node是v16.14.0版本,即使连续重新安装,也会重复相同的错误,因为这些错误经常发生在节点v17中。
"scripts": {
"serve": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint"
},
如果使用上述代码,则可以执行该代码,但在使用停靠程序构建映像时再次出现问题。有解决办法吗?
发布于 2022-11-21 05:16:19
在您的package.json
中添加如下所示,省略导出,它将为我工作
"scripts": {
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
},
https://stackoverflow.com/questions/71273466
复制相似问题