$ npx -y pagefind --dist public --serve Failed to run pagefind via the npx wrapper: Error: Failed to install either of [pagefind_extended, pagefind]. Most likely the platform android-arm64 is not yet a supported architecture. Please open an issue at https://github.com/CloudCannon/pagefind and paste this error message in full. If you believe this package should be compatible with your system, you can try downloading a release binary directly from https://github.com/CloudCannon/pagefind/releases Please open an issue at https://github.com/CloudCannon/pagefind and paste this error message in full.
$ npx -y pagefind --dist public --serve Failed to run pagefind via the npx wrapper: Error: Failed to install either of [pagefind_extended, pagefind]. Most likely the platform android-arm64 is not yet a supported architecture. Please open an issue at https://github.com/CloudCannon/pagefind and paste this error message in full. If you believe this package should be compatible with your system, you can try downloading a release binary directly from https://github.com/CloudCannon/pagefind/releases Please open an issue at https://github.com/CloudCannon/pagefind and paste this error message in full.
i checked the binary releases from https://github.com/CloudCannon/pagefind/releases in that error, it seems to have an aarch64 linux? but I don't know what to do with that or if that would even actually work. (I spent some time figuring out that my android is aarch64, or so i think)
there is also information about using rust and cargo or something in the installation page but I don't know if that would be any different than using npm, it seems python version is also a wrapper so i gues rust would be a wrapper as well. if anyone that understands binary releases and packages could guide me and let me know if this would work at all with some method, that would be helpful. or whether i should give up on pagefind in termux.
for context i was using this with astro, but this doesn't work without as well. same result (that error)
Static low-bandwidth search at scale. Contribute to CloudCannon/pagefind development by creating an account on GitHub.
Solution
As for this application in particular. It's a Rust application, it's written in Rust. They seem to also be providing an interface library for Python and NodeJS/JavaScript but the core application is written in Rust.
The
npm
npm
/
npx
npx
package probably contains the API for NodeJS. Same for the
pip
pip
package and the Python API. Although both probably also ship the main package in binary form.