CentOS 7 使用 npm 失败 npm: symbol SSL_set_cert_cb

2020-02-22 18:00:30

CentOS 7 使用 npm 失败 npm: symbol SSL_set_cert_cb

使用yum源直接安装node.js

yum -y install nodejs

将其换成国内源的时候,发生异常:

异常信息

[root@VM_58_62_centos ~]# npm install -g cnpm --registry=https://registry.npm.taobao.orgnpm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference[root@VM_58_62_centos ~]#

解决方案

安装yum工具包

yum -y install yum-utils

安装或更新openssl

 yum -y install openssl
yum -y update openssl

启用

 yum-config-manager --enable cr 
 yum update



  • 2017-12-25 11:07:58

    mogodb 备份

    error connecting to db server: server returned error on SASL authentication

  • 2017-12-25 15:53:15

    MongoDB3.4版本配置详解

    配置文件方面,mongod和mongos有很多相同之处,下文中如有区别之处将会特别指出。 在一个节点上,通常同时启动mongod和mongos进程是正常的,他们之间不存在资源竞争,但是为了避免冲突,我们希望它们使用各自的配置文件,比如mongod.conf、mongos.conf;mongodb的某些平台下的安装包中没有自带配置文件,需要开发者自己创建。