Fork me on GitHub

NodeJS报错一例

环境说明

1
2
3
4
5
6
[root@linux-node7 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@linux-node7 ~]# uname -r
3.10.0-327.el7.x86_64
[root@linux-node7 ~]# uname -m
x86_64

报错

安装NodeJS时报错

1
2
3
4
5
6
7
8
# yum install -y npm
# npm config set registry https://registry.npm.taobao.org
# npm info underscore
npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
# npm install -g n
# n stable
# node -v
# npm -v

解决

1
# yum update -y openssl

参考资料

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

======================================================
希望各位朋友支持一下

本文作者:dongsheng
本文地址https://mds1455975151.github.io/archives/1ebf3c88.html
版权声明:转载请注明出处!

坚持技术分享,您的支持将鼓励我继续创作!