termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
35.21k stars 3.7k forks source link

[Bug]: E: Unable to locate package npm #2560

Closed shanduy closed 2 years ago

shanduy commented 2 years ago

Problem description

Hello termux team. I got an error installing pkg install npm And I get this error that is in the capture

WhatsApp Image 2022-02-02 at 21 07 11

Previously this package if they installed me correctly

If someone could help me I would be grateful

The version of is 0.118

Steps to reproduce the behavior.

pkg install npm

What is the expected behavior?

The error that I get is Unable to locate package npm

System information

agnostic-apollo commented 2 years ago

There is no package npm in termux. Install nodejs pacakge for npm.

shanduy commented 2 years ago

then the package pkg install npm does not exist??

Why several bots for whatsapp that are installed use the pkg install npm

agnostic-apollo commented 2 years ago

npm is a binary provided by nodejs in both termux and linux distro. Linux distros have a separate pacakge for npm, likely what those instructions are referring to.

$ dpkg -S $PREFIX/bin/npm
nodejs: /data/data/com.termux/files/usr/bin/npm