npm: relocation error: npm: symbol ssl-尊龙官方平台

npm: relocation error: npm: symbol ssl_set_cert_cb, version libssl.so.10 not defined in file libssl.

el/2024/3/25 16:45:26

npm: relocation error: npm: symbol ssl_set_cert_cb, version libssl.so.10 not defined in file libssl.


参考:

1.https://stackoverflow.com/questions/46473376/node-relocation-error-node-symbol-ssl-set-cert-cb-version-libssl-so-10-not-d

2.https://www.cnblogs.com/hsia2017/p/8387604.html


环境:centos 7
[root@test1280 ~]# cat /etc/redhat-release 
centos linux release 7.2.1511 (core) 
[root@test1280 ~]# uname -a
linux test1280 3.10.0-327.el7.x86_64 #1 smp thu nov 19 22:10:57 utc 2015 x86_64 x86_64 x86_64 gnu/linux
[root@test1280 ~]# npm -v
3.10.10
[root@test1280 ~]# node -v
v6.17.1

重现:npm install -g http-server
[root@test1280 ~]# npm install -g http-server
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@test1280 ~]# yum update openssl -y
……
[root@test1280 ~]# npm install -g http-server
/usr/bin/http-server -> /usr/lib/node_modules/http-server/bin/http-server
/usr/bin/hs -> /usr/lib/node_modules/http-server/bin/http-server
/usr/lib
└─┬ http-server@0.11.1 ├── colors@1.0.3 ├── corser@2.0.1 ├─┬ ecstatic@3.3.2 │ ├── he@1.2.0 │ ├── mime@1.6.0 │ ├── minimist@1.2.0 │ └── url-join@2.0.5 ├─┬ http-proxy@1.18.0 │ ├── eventemitter3@4.0.0 │ ├── follow-redirects@1.9.0 │ └── requires-port@1.0.0 ├── opener@1.4.3 ├─┬ optimist@0.6.1 │ ├── minimist@0.0.10 │ └── wordwrap@0.0.3 ├─┬ portfinder@1.0.25 │ ├─┬ async@2.6.3 │ │ └── lodash@4.17.15 │ ├─┬ debug@3.2.6 │ │ └── ms@2.1.2 │ └─┬ mkdirp@0.5.1 │   └── minimist@0.0.8 └─┬ union@0.4.6 └── qs@2.3.3 
[root@test1280 ~]# openssl version
openssl 1.0.2k-fips  26 jan 2017

http://www.ngui.cc/el/5127058.html

相关文章

openapi:swagger-ui/swagger-editor 部署

openapi:搭建部署 swagger-ui/swagger-editor 主机环境:centos 7.2 [roottest1280 ~]# cat /etc/redhat-release centos linux release 7.2.1511 (core) [roottest1280 ~]# uname -a linux test1280 3.10.0-327.el7.x86_64 #1 smp thu nov 19 22:10:5…

golang:字符集编码转换(utf8与gbk)

golang:字符集编码转换 utf8与gbk字符集编码转换: package mainimport ("bytes""golang.org/x/text/encoding/simplifiedchinese""golang.org/x/text/transform""io/ioutil""log""os" )f…

加解密:基于 openssl 实现 des ede3 cbc pkcs#5 算法

加解密:基于 openssl 实现 des ede3 cbc pkcs#5 算法 code: #include #include #include #include void encrypt_des_ede_cbc_pkcs(unsigned char *in, // 待加密数据…

加解密:基于 java 实现 des ede3 cbc pkcs#5 算法

加解密:基于 java 实现 des ede3 cbc pkcs#5 算法 code: import javax.crypto.cipher; import javax.crypto.secretkey; import javax.crypto.secretkeyfactory; import javax.crypto.spec.desedekeyspec; import javax.crypto.spec.ivparameterspec;p…

openssl:undefined reference to symbol 'evp_encryptupdate@@libcrypto.so.10'

openssl:undefined reference to symbol ‘evp_encryptupdatelibcrypto.so.10’ 查看 openssl 版本: $ openssl version -a openssl 1.0.2k-fips 26 jan 2017 built on: reproducible build, date unspecified platform: linux-x86_64 options: bn(6…

goland (idea) 取消拼写检查

goland (idea) 取消拼写检查 默认情况下,idea会帮助我们检查不规范的拼写,标记出潜在的问题,例如: 可以通过设置idea,达到取消拼写检查的目的,如下: 强迫症的我表示很舒服。 参考࿱…

go build: mod: x509: certificate has expired or is not yet valid

go build: mod: x509: certificate has expired or is not yet valid 今天在编译go程序是出现报错: go: github.com/buger/jsonparserv0.0.0-20181115193947-bf1c66bbce23: get https://goproxy.io/github.com/buger/jsonparser/v/v0.0.0-20181115193947-bf1c66bb…

centos 8:vmware section %packages does not end with a %end

centos 8:vmware section %packages does not end with a %end vmware版本: 产品:vmware workstation 14 pro 版本:14.1.3 build-9474260centos镜像版本:centos-8.1.1911-x86_64 在安装中遇到了如下报错:…

linux: sysctl 命令

linux: sysctl 命令 sysctl 命令用于运行时配置系统内核参数。 常用参数:sysctl -a | -p | -w 关联man手册: man sysctl man sysctl.conf关联文件(目录): /proc/sys /etc/sysctl.conf1.查看运行时内核参数 以 ne…

openssl: error: storage size of ‘ctx’ isn’t known

openssl: error: storage size of ‘ctx’ isn’t known 问题 code: #include #include #include #include #include #include void hmac(const char *alg…
网站地图