Skip to content

[BUG] Unable to install NPM packages on termux - npm ERR! Exit handler never called  #4199

@byteshiva

Description

@byteshiva

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

ERR! /data/data/com.termux/files/home/.npm/_logs/2021-12-29T06_46_34_666Z-debug-0.log ~

 $ npm i --unsafe-perm node-red 

npm ERR! Exit handler never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! 

<https://github.com/npm/cli/issues> npm ERR! A complete log of this run can be found in: npm ERR! /data/data/com.termux/files/home/.npm/_logs/2021-12-29T06_47_49_945Z-debug-0.log

Expected Behavior

the package should be installed on termux

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Download the Termux app and install it on your android 10 phone and try to install

apt update
apt upgrade
apt install coreutils nano nodejs
npm i -g --unsafe-perm node-red

Environment

uname -a 
Linux localhost 4.9.190-perf-gd805e34 #1 SMP PREEMPT Tue Nov 9 01:08:11 CST 2021 armv8l Android $
  • npm:
  • Node:
  • OS:
  • platform:
  • npm config:
;npm config ls ; 
node bin location = /data/data/com.termux/files/usr/bin/node ; 
cwd = /data/data/com.termux/files/home ; 
HOME = /data/data/com.termux/files/home ;
Run `npm config ls -l` to show all defaults. ~ $
$ npm version 

{ npm: '8.3.0', 
node: '17.3.0', 
v8: '9.6.180.15-node.12', 
uv: '1.42.0',
 zlib: '1.2.11', 
brotli: '1.0.9', ares: '1.18.1', 
modules: '102', 
nghttp2: '1.45.1', 
napi: '8', 
llhttp: '6.0.4', 
openssl: '1.1.1l', 
cldr: '40.0',
 icu: '70.1',
 tz: '2021a3', 
unicode: '14.0' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions