Termux-packages: Can't run npm

Created on 1 Apr 2019  路  5Comments  路  Source: termux/termux-packages

Trying to run "npm" always results in the following error message:

Bad system call

It occurred on both of my phones,one is Android 8.0,rooted,and the other is Android 9.0, not rooted.Tried reinstall.

Most helpful comment

I've pushed an update to the master branch and opened a PR for the android-5 branch with a fix.

If you feel adventurous and don't want to wait then you could switch to the new repo by editing $PREFIX/etc/apt/sources.list and replace
deb https://termux.net stable main
with
deb https://dl.bintray.com/termux/termux-packages-24 stable main
(See https://wiki.termux.com/wiki/Bintray_package_hosting for more information)

This will subscribe you to the new android 7 (and newer) repo which is currently being tested. The switch to this new repo will happen within a few weeks anyways.
But note that it is for devices with android 7 and newer only

Closing this as it is fixed (on the master branch).

Changed the list, a lot of everething, including nodejs have upgraded while apt update && apt upgrade.

npm -v is OK
npm i is Bad system call during installation.

All 5 comments

What's the output of termux-info?
Are you using nodejs or nodejs-lts?

Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-21 science/stable
https://dl.bintray.com/grimler/game-packages-21 games/stable
https://termux.net stable/main
https://termux.net stable/main
System information:
Linux localhost 4.9.97 #1 SMP PREEMPT Fri Feb 15 17:53:12 CST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
HUAWEI
Device model:
BKL-AL20

And

Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-21 science/stable
https://dl.bintray.com/grimler/game-packages-21 games/stable
https://termux.net stable/main
https://termux.net stable/main
System information:
Linux localhost 4.4.23+ #1 SMP PREEMPT Wed Nov 28 00:44:03 CST 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
8.0.0
Device manufacturer:
HUAWEI
Device model:
HUAWEI NXT-TL00

I've pushed an update to the master branch and opened a PR for the android-5 branch with a fix.

If you feel adventurous and don't want to wait then you could switch to the new repo by editing $PREFIX/etc/apt/sources.list and replace
deb https://termux.net stable main
with
deb https://dl.bintray.com/termux/termux-packages-24 stable main
(See https://wiki.termux.com/wiki/Bintray_package_hosting for more information)

This will subscribe you to the new android 7 (and newer) repo which is currently being tested. The switch to this new repo will happen within a few weeks anyways.
But note that it is for devices with android 7 and newer only

Closing this as it is fixed (on the master branch).

I've pushed an update to the master branch and opened a PR for the android-5 branch with a fix.

If you feel adventurous and don't want to wait then you could switch to the new repo by editing $PREFIX/etc/apt/sources.list and replace
deb https://termux.net stable main
with
deb https://dl.bintray.com/termux/termux-packages-24 stable main
(See https://wiki.termux.com/wiki/Bintray_package_hosting for more information)

This will subscribe you to the new android 7 (and newer) repo which is currently being tested. The switch to this new repo will happen within a few weeks anyways.
But note that it is for devices with android 7 and newer only

Closing this as it is fixed (on the master branch).

Changed the list, a lot of everething, including nodejs have upgraded while apt update && apt upgrade.

npm -v is OK
npm i is Bad system call during installation.

This gives me bad system call:

npm install https://github.com/ourarash/get-cursor-position.git

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neitsab picture neitsab  路  3Comments

StephanBeer picture StephanBeer  路  3Comments

jackbrycesmith picture jackbrycesmith  路  3Comments

divyakutty picture divyakutty  路  3Comments

bkdwt picture bkdwt  路  3Comments