Announcement

Collapse
No announcement yet.

NodeJS NPM OpenSSL error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NodeJS NPM OpenSSL error

    I accidentally deleted /opt/alt/alt-nodejs12 folder and reinstalled it. But after reinstalling, when I run nodejs12 commands (e.g.: /opt/alt/alt-nodejs12/root/usr/bin/npm --version) it returns error:

    Code:
    /opt/alt/alt-nodejs12/root/usr/bin/node: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
    I copied the libcrypto.so.1.1 and libssl.so.1.1 with their symlinks from /opt/alt/alt-nodejs11/root/usr/lib64 folder to nodejs12 corresponding directory, but after that it returns another error:

    Code:
    /opt/alt/alt-nodejs12/root/usr/bin/node: /opt/alt/alt-nodejs12/root/usr/lib64/libssl.so.1.1: version `OPENSSL_1_1_1 not found (required by /opt/alt/alt-nodejs12/root/usr/bin/node)
    
    /opt/alt/alt-nodejs12/root/usr/bin/node: /opt/alt/alt-nodejs12/root/usr/lib64/libcrypto.so.1.1: version `OPENSSL_1_1_1 not found (required by /opt/alt/alt-nodejs12/root/usr/bin/node)
    What command should I run to install OpenSSL requirements on this version of NodeJS ?

  • #2
    Hello Siman,

    you can (1) check the package that he has to reinstall:
    # yum whatprovides /opt/alt/alt-nodejs12/root/usr/lib64/libssl.so.1.1
    or
    # rpm -qf /opt/alt/alt-nodejs12/root/usr/lib64/libssl.so.1.1.1b
    for example:
    # rpm -qf /opt/alt/alt-nodejs12/root/usr/lib64/libssl.so.1.1.1b
    alt-nodejs12-openssl-libs-1.1.1b-1.el7.x86_64

    (2) reinstall the package from the output via
    # yum reinstall alt-nodejs12-openssl-libs

    just in case, heres how the folder looks on a test server:
    # ll /opt/alt/alt-nodejs12/root/usr/lib64
    total 74388
    dr-xr-xr-x 2 root root 4096 May 8 2019 X11
    drwxr-xr-x 2 root root 4096 Jul 18 2019 engines-1.1
    dr-xr-xr-x 2 root root 4096 May 8 2019 games
    -rw-r--r-- 1 root root 22761688 May 8 2019 libcrypto.a
    lrwxrwxrwx 1 root root 19 Jul 18 2019 libcrypto.so.1.1 -> libcrypto.so.1.1.1b
    -rwxr-xr-x 1 root root 11861760 May 8 2019 libcrypto.so.1.1.1b
    lrwxrwxrwx 1 root root 18 Sep 10 2019 libicudata.so.64 -> libicudata.so.64.2
    -rwxr-xr-x 1 root root 27534088 Jul 1 2019 libicudata.so.64.2
    lrwxrwxrwx 1 root root 18 Sep 10 2019 libicui18n.so.64 -> libicui18n.so.64.2
    -rwxr-xr-x 1 root root 3031872 Jul 1 2019 libicui18n.so.64.2
    lrwxrwxrwx 1 root root 16 Sep 10 2019 libicuio.so.64 -> libicuio.so.64.2
    -rwxr-xr-x 1 root root 58216 Jul 1 2019 libicuio.so.64.2
    lrwxrwxrwx 1 root root 18 Sep 10 2019 libicutest.so.64 -> libicutest.so.64.2
    -rwxr-xr-x 1 root root 75752 Jul 1 2019 libicutest.so.64.2
    lrwxrwxrwx 1 root root 16 Sep 10 2019 libicutu.so.64 -> libicutu.so.64.2
    -rwxr-xr-x 1 root root 208768 Jul 1 2019 libicutu.so.64.2
    lrwxrwxrwx 1 root root 16 Sep 10 2019 libicuuc.so.64 -> libicuuc.so.64.2
    -rwxr-xr-x 1 root root 1910528 Jul 1 2019 libicuuc.so.64.2
    -rw-r--r-- 1 root root 5605200 May 8 2019 libssl.a
    lrwxrwxrwx 1 root root 16 Jul 18 2019 libssl.so.1.1 -> libssl.so.1.1.1b
    -rwxr-xr-x 1 root root 2758504 May 8 2019 libssl.so.1.1.1b
    lrwxrwxrwx 1 root root 14 Sep 10 2019 libuv.so.1 -> libuv.so.1.0.0
    -rwxr-xr-x 1 root root 186376 Aug 22 2019 libuv.so.1.0.0
    lrwxrwxrwx 1 root root 14 May 29 00:30 libz.so.1 -> libz.so.1.2.11
    -rwxr-xr-x 1 root root 94192 May 12 14:49 libz.so.1.2.11
    drwxr-xr-x 2 root root 4096 May 8 2019 openssl
    dr-xr-xr-x 2 root root 4096 May 8 2019 pkgconfig
    dr-xr-xr-x 5 root root 4096 Jul 18 2019 pm-utils
    dr-xr-xr-x 2 root root 4096 May 8 2019 sse2
    dr-xr-xr-x 2 root root 4096 May 8 2019 tls

    Comment

    Working...
    X