Javascript 节点:重定位错误:节点:符号 SSL_set_cert_cb,版本 libssl.so.10 未在带有链接时间参考的文件 libssl.so.10 中定义

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46473376/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 03:27:22  来源:igfitidea点击:

node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

javascriptnode.jsnpmcentos7npm-install

提问by Mike K.

I've been running a NodeJS server for a website using the MEAN stack for a website, and it's been running for a few months. When I started to work on it again this morning, I started up the website with:

我一直在使用网站的 MEAN 堆栈为网站运行 NodeJS 服务器,并且它已经运行了几个月。当我今天早上再次开始工作时,我启动了网站:

nodemon server/app.js

The express server starts up just fine, but as soon as I connect to it with my browser, I get the following error:

快速服务器启动得很好,但是一旦我用浏览器连接到它,我就会收到以下错误:

node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference [nodemon] failed to start process, "node" exec not found`

节点:重定位错误:节点:符号 SSL_set_cert_cb,版本 libssl.so.10 未在文件 libssl.so.10 中定义,链接时间参考 [nodemon] 无法启动进程,找不到“节点”exec`

And when I do node server/app.js, I get the same node: relocation error..., but dont' get the ...failed to start process...

当我这样做时node server/app.js,我得到了相同的结果node: relocation error...,但没有得到...failed to start process...

I don't think it is with any changes I made in the past few days, because I went to another server where this was running on (where the code was a few weeks old), and I restarted the nodejs process, and then it broke when I accessed the site.

我不认为这与我在过去几天所做的任何更改有关,因为我去了另一台运行它的服务器(那里的代码已经有几个星期了),然后我重新启动了 nodejs 进程,然后它当我访问该网站时坏了。

npm version: 3.10.10, node version: 6.11.3, CentOS Linux release 7.3.1611

npm 版本:3.10.10,节点版本:6.11.3,CentOS Linux 版本 7.3.1611

回答by Jerome C.

I had same issue with a ursa module that on the same environment.

我在同一环境中的 ursa 模块遇到了同样的问题。

Npm rebuild has the following error when my opensslversion is 1.0.1e

当我的openssl版本是1.0.1e

node-gyp: relocation error: node-gyp: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

node-gyp: relocation error: node-gyp: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

I updated openssl with yum update opensslto 1.0.2k, then npm rebuildno longer has that error.

我用yum update opensslto更新了 openssl 1.0.2k,然后npm rebuild不再有那个错误。