''CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found

In Termux (my_distro):

$ pkg show openssl
Package: openssl
Version: 3.0.1-1
Maintainer: @termux
Installed-Size: 6648 kB
Depends: ca-certificates, zlib
Conflicts: libcurl (<< 7.61.0-1)
Breaks: openssl-tool (<< 1.1.1b-1), openssl-dev
Replaces: openssl-tool (<< 1.1.1b-1), openssl-dev

openssl installed pkg:

openssh/stable 8.8p1-3 aarch64 [upgradable from: 8.8p1-1]
openssl-tool/stable 3.0.1-1 aarch64 [upgradable from: 1.1.1m-2]
openssl/stable 3.0.1-1 aarch64 [upgradable from: 1.1.1m-2]

Installation of nodejs:

$ pkg install nodejs-lts
Setting up nodejs-lts (16.14.0-2) ...
CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found
Aborted
dpkg: error processing package nodejs-lts (--configure):
 installed nodejs-lts package post-installation script subprocess returned error exit status 134
Processing triggers for man (1.14.5-3) ...
Errors were encountered while processing:
 nodejs-lts
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

After that it shows now.

$ node
CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found
Aborted

$ npm
CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found
Aborted


Solution 1:[1]

for me, running pkg upgrade && pkg update has solved the problem

Solution 2:[2]

Orrr... just

pkg update openssl-tool

or

apt update openssl-tool 

Is the same.

;)

Solution 3:[3]

openssl-tool may not be installed if you are running latest termux

Try running:

apt upgrade && apt update
apt install openssl-tool

Solution 4:[4]

The google play version of Termux is deprecated.

Installing from Fdroid has solved this problem for me. https://wiki.termux.com/wiki/Installation

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Botea Florin
Solution 2 user18957781
Solution 3 Tyler2P
Solution 4 DroopCat