PanJiaChen / vue-admin-template

a vue2.0 minimal admin template
https://git.io/fAnuM
MIT License
20.03k stars 7.42k forks source link

opensslErrorStack问题,node版本太高 #761

Open StrawHat179 opened 1 year ago

StrawHat179 commented 1 year ago

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 commented 1 year ago

Linux or MacOS run this:

export NODE_OPTIONS=--openssl-legacy-provider
zhanyd commented 7 months ago

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