Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run npm #3608

Closed
dzx-dzx opened this issue Apr 1, 2019 · 5 comments
Closed

Can't run npm #3608

dzx-dzx opened this issue Apr 1, 2019 · 5 comments

Comments

@dzx-dzx
Copy link

dzx-dzx commented Apr 1, 2019

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.

@Grimler91 Grimler91 transferred this issue from termux/termux-app Apr 1, 2019
@Grimler91
Copy link
Member

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

Grimler91 added a commit to Grimler91/termux-packages that referenced this issue Apr 1, 2019
@dzx-dzx
Copy link
Author

dzx-dzx commented Apr 1, 2019

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

Grimler91 added a commit to Grimler91/termux-packages that referenced this issue Apr 1, 2019
@Grimler91
Copy link
Member

Grimler91 commented Apr 1, 2019

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).

@houd1ni
Copy link

houd1ni commented Apr 8, 2019

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.

@ourarash
Copy link

This gives me bad system call:

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

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants