Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opensslErrorStack问题,node版本太高 #761

Open
StrawHat179 opened this issue Apr 15, 2023 · 2 comments
Open

opensslErrorStack问题,node版本太高 #761

StrawHat179 opened this issue Apr 15, 2023 · 2 comments

Comments

@StrawHat179
Copy link

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"”这段代码

@james-wangx
Copy link

Linux or MacOS run this:

export NODE_OPTIONS=--openssl-legacy-provider

@zhanyd
Copy link

zhanyd commented Apr 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants