Skip to content

dlopen failed in android arm64 #6089

@hyperz111

Description

@hyperz111

Rollup Version

v4.50.0

Operating System (or Browser)

Android ARM64

Node Version (if applicable)

24.7.0

Link To Reproduction

N/A

Expected Behaviour

~/p $ npx rollup -v
rollup v4.50.0

Actual Behaviour

~/p $ npx rollup -v
/data/data/com.termux/files/home/p/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 (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
    at requireWithFriendlyError (/data/data/com.termux/files/home/p/node_modules/rollup/dist/native.js:67:9)
    at Object.<anonymous> (/data/data/com.termux/files/home/p/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)
    ... 4 lines matching cause stack trace ...
    at require (node:internal/modules/helpers:152:16) {
  [cause]: Error: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/home/p/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/p/node_modules/rollup/dist/native.js:49:10)
      at Object.<anonymous> (/data/data/com.termux/files/home/p/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

Metadata

Metadata

Assignees

No one assigned

    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