我们有一个节点js应用程序,在节点版本8上运行,我们想将其迁移到版本10,我已经重新安装了节点js 10,此后我正在运行节点server.js,但其显示在错误下方。我发现它与firebase模块有关,我也升级了fire base模块,但显示相同的错误。如何升级到节点10及其相关模块?
Error: error:2006D080:BIO routines:BIO_new_file:no such file
at Sign.sign (internal/crypto/sig.js:83:26)
at Object.sign (C:\new-rest-api\node_modules\jwa\index.js:55:49)
at Object.jwsSign [as sign] (C:\new-rest-api\node_modules\jws\lib\sign-stream.js:23:24)
at Object.module.exports [as sign] (C:\new-rest-api\node_modules\firebase-admin\node_modules\jsonwebtoken\sign.js:186:16)
at CertCredential.createAuthJwt_ (C:\new-rest-api\node_modules\firebase-admin\lib\auth\credential.js:229:20)
at CertCredential.getAccessToken (C:\new-rest-api\node_modules\firebase-admin\lib\auth\credential.js:199:26)
at FirebaseAppInternals.getToken (C:\new-rest-api\node_modules\firebase-admin\lib\firebase-app.js:68:73)
at AuthTokenProvider.getToken (C:\new-rest-api\node_modules\@firebase\database\dist\cjs\src\core\AuthTokenProvider.js:34:49)
at PersistentConnection.establishConnection_ (C:\new-rest-api\node_modules\@firebase\database\dist\cjs\src\core\PersistentConnection.js:597:18)
at Timeout._onTimeout (C:\new-rest-api\node_modules\@firebase\database\dist\cjs\src\core\PersistentConnection.js:497:19)
at ontimeout (timers.js:425:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
答案 0 :(得分:0)
我今天遇到这个问题。 我的问题是我的OPENSSL_CONF环境变量未正确设置。确保已安装openssl,并且OPENSSL_CONF指向openssl.cfg