Skip to content

Npm not working in proot with debian trixie #326

@supastishn

Description

@supastishn

Problem description

The issue is that, with most packages, attempting to install will give a cache error similar to:


│  npm WARN tarball tarball data for locate-path@https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz (sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==) seems to be corrupted. Trying again.
│  npm WARN tarball tarball data for dequal@https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz (sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==) seems to be corrupted. Trying again.                                                                                                         │  npm WARN tarball tarball data for locate-path@https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz (sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==) seems to be corrupted. Trying again.                                                                                          │  npm WARN tarball tarball data for dequal@https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz (sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==) seems to be corrupted. Trying again.
│  npm ERR! code ENOENT
│  npm ERR! syscall rename                                                                                                                                              │  npm ERR! path /home/supastishn/.npm/_cacache/tmp/0cc23c35
│  npm ERR! dest /home/supastishn/.npm/_cacache/content-v2/sha512/88/f6/4ae9e6236f146edee078fd667712c10830914ca80a28a65dd1fb3baad148dc026fcc3ba282c1e0e03df3f77a54f3b6828fdcab67547c539f63470520d553
│  npm ERR! errno -2
│  npm ERR! enoent ENOENT: no such file or directory, rename '/home/supastishn/.npm/_cacache/tmp/0cc23c35' -> '/home/supastishn/.npm/_cacache/content-v2/sha512/88/f6/4ae9e6236f146edee078fd667712c10830914ca80a28a65dd1fb3baad148dc026fcc3ba282c1e0e03df3f77a54f3b6828fdcab67547c539f63470520d553'
│  npm ERR! enoent This is related to npm not being able to find a file.
│  npm ERR! enoent
│
│  npm ERR! A complete log of this run can be found in:
│  npm ERR!     /home/supastishn/.npm/_logs/2025-09-24T18_14_25_736Z-debug-0.log
│
└  Operation failed.

Steps to reproduce

  1. Login to Debian Trixie via proot distro (note: i was told to report error here instead of proot-distro repo)
  2. Install NPM
  3. Do something requiring installing dependencies like npx http-server, or npm create vite@latest

Expected behavior

For it to properly install dependencies.

Additional information

Termux Variables:
unsupported
Packages CPU architecture:
arm64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main/ stable main
Updatable packages:
base-files/stable 13.8+deb13u1 arm64 [upgradable from: 13.8]
init-system-helpers/stable 1.69~deb13u1 all [upgradable from: 1.68]
libpcre2-8-0/stable 10.46-1~deb13u1 arm64 [upgradable from: 10.45-1]
linux-libc-dev/stable-security 6.12.48-1 all [upgradable from: 6.12.43-1]
tzdata/stable 2025b-4+deb13u1 all [upgradable from: 2025b-4]
termux-tools version:
1.45.0
Android version:
14
Kernel build information:
Linux localhost 6.2.1-PRoot-Distro #1 SMP PREEMPT Thu Feb 13 13:44:36 UTC 2025 aarch64 GNU/Linux
Device manufacturer:
Xiaomi
Device model:
23043RP34G
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=
Installed termux plugins:
com.termux.api versionCode:1000
com.termux.x11 versionCode:15
com.termux.styling versionCode:1000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions