Skip to content

[BUG] In termux it's not able to run any vite app look below errors #8564

@ysr-hameed

Description

@ysr-hameed

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

$ cd test
npm install
npm run dev

esbuild@0.25.9 postinstall
node install.js

added 94 packages, and audited 95 packages in 46s

6 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

test@0.0.0 dev
vite

/data/data/com.termux/files/home/test/node_modules/rollup/dist/native.js:67
throw new Error(
^

Error: Cannot find module @rollup/rollup-android-arm64. npm has a bug related to optional dependencies (#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (/data/data/com.termux/files/home/test/node_modules/rollup/dist/native.js:67:9)
at Object. (/data/data/com.termux/files/home/test/node_modules/rollup/dist/native.js:76:76)
at Module._compile (node:internal/modules/cjs/loader:1738:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1871:10)
at Module.load (node:internal/modules/cjs/loader:1470:32)
... 2 lines matching cause stack trace ...
at wrapModuleLoad (node:internal/modules/cjs/loader:238:24)
at cjsLoader (node:internal/modules/esm/translators:317:5)
at ModuleWrap. (node:internal/modules/esm/translators:209:7) {
[cause]: Error: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/home/test/node_modules/@rollup/rollup-android-arm64/rollup.android-arm64.node"...
at Module._extensions..node (node:internal/modules/cjs/loader:1898:18)
at Module.load (node:internal/modules/cjs/loader:1470:32)
at Module._load (node:internal/modules/cjs/loader:1290:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:238:24)
at Module.require (node:internal/modules/cjs/loader:1493:12)
at require (node:internal/modules/helpers:152:16)
at requireWithFriendlyError (/data/data/com.termux/files/home/test/node_modules/rollup/dist/native.js:49:10)
at Object. (/data/data/com.termux/files/home/test/node_modules/rollup/dist/native.js:76:76)
at Module._compile (node:internal/modules/cjs/loader:1738:14) {
code: 'ERR_DLOPEN_FAILED'
}
}

Node.js v24.7.0
~/test $

Expected Behavior

No response

Steps To Reproduce

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

Environment

  • npm:
  • Node.js:
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    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