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 not defined in file 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.