npm install命令遇到relocation error: npm: symbol SSL_set_cert_cb的报错问题

在安装elasticsearch-head的过程中npm install遇到如下报错

[root@localhost elasticsearch-head]# npm install
npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

网上找了一下相关资料,发现最直接有效的方法是升级openssl,执行yum update openssl -y命令即可。

升级之前版本信息:

[root@localhost elasticsearch-head]# openssl version
OpenSSL 1.0.1i 6 Aug 2014

升级之后:

[root@localhost elasticsearch-head]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017

此时再次执行,报错消除

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.