vue-admin-template icon indicating copy to clipboard operation
vue-admin-template copied to clipboard

opensslErrorStack问题,node版本太高

Open StrawHat179 opened this issue 1 year ago • 2 comments

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED

我自己的node版本是v18.14.0,虽然package.json给出的是"engines": { "node": ">=8.9", "npm": ">= 3.0.0" },但是版本太高还是不行,建议降级成16以下,或者运行之前执行”$env:NODE_OPTIONS="--openssl-legacy-provider"”这段代码

StrawHat179 avatar Apr 15 '23 06:04 StrawHat179

Linux or MacOS run this:

export NODE_OPTIONS=--openssl-legacy-provider

james-wangx avatar Jul 08 '23 03:07 james-wangx

楼主很棒,解决了我的问题,谢谢。

zhanyd avatar Apr 07 '24 02:04 zhanyd