Skip to content

Android Support #43

@bobjoe12131

Description

@bobjoe12131

MWS depends on libsql, which does not support the android platform.

It does work if i set up a proot, but then i get Segmentation Faults every so often; I think it is the proot's fault.

It would be nice to have either android support or a section in the readme about installing on android (like linking to https://wiki.termux.com/wiki/PRoot or something else)

Attempting to install it on Termux: ``` ~ $ npm init @tiddlywiki/mws@latest mws Need to install the following packages: @tiddlywiki/create-mws@0.0.8 Ok to proceed? (y)

npx
create-mws mws

/data/data/com.termux/files/home/mws
├─ package.json
├─ mws.run.mjs
├─ localhost_certs.sh
└─ Running npm install...
npm error code EBADPLATFORM
npm error notsup Unsupported platform for libsql@0.3.19: wanted {"os":"darwin,linux,win32","cpu":"x64,arm64,wasm32"} (current: {"os":"android","cpu":"arm64"})
npm error notsup Valid os: darwin,linux,win32
npm error notsup Actual os: android
npm error notsup Valid cpu: x64,arm64,wasm32
npm error notsup Actual cpu: arm64
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2025-04-24T02_27_26_006Z-debug-0.log
node:child_process:957
throw err;
^

Error: Command failed: npm install --save-exact tiddlywiki@latest @tiddlywiki/mws@latest
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:882:11)
at execSync (node:child_process:954:15)
at Object. (/data/data/com.termux/files/home/.npm/_npx/2fc37df1597f96a7/node_modules/@tiddlywiki/create-mws/create.js:76:1)
at Module._compile (node:internal/modules/cjs/loader:1734:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1899:10)
at Module.load (node:internal/modules/cjs/loader:1469:32)
at Module._load (node:internal/modules/cjs/loader:1286:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 15297,
stdout: null,
stderr: null
}

Node.js v23.11.0
npm error code 1
npm error path /data/data/com.termux/files/home
npm error command failed
npm error command sh -c create-mws mws
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2025-04-24T02_27_17_281Z-debug-0.log
~ $ # D:

</details>

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