Open irbull opened 2 years ago
It looks like pagefind cannot find a binary file for your computer. The pagefind plugin download one of the files of the release assets: https://github.com/CloudCannon/pagefind/releases/tag/v0.8.1 These are the possible targets: https://github.com/lumeland/experimental-plugins/blob/main/pagefind/deps.ts#L9-L11
Please, run deno
in your terminal and then typeDeno.build
. What it returns?
Deno 1.25.3
exit using ctrl+d or close()
> Deno.build
{
target: "aarch64-apple-darwin",
arch: "aarch64",
os: "darwin",
vendor: "apple",
env: undefined
}
Ah, looks like it's related to the Mac M1 (arm) architecture.
Ok, understood.
Does the x86_64 architecture work on Mac M1?
You can download the binary https://github.com/CloudCannon/pagefind/releases/tag/v0.8.1 and save it into _bin/pagefind
. And then run lume blog.
If it works fine, I'll change the plugin to download the same binary for all macOS.
It looks like the npm package returns the same binary for all darwin architectures: https://github.com/CloudCannon/pagefind/blob/84d5941afeaf4e3bfc85cb369a762f01b931c5c0/wrappers/node/lib/postinstall.js#L39 I'll fix that.
If you follow the steps in the README:
deno task serve
The system errors out with:
The docs suggest configuring
_config.js
, but I'm not sure what to adjust. This error appears related topageFind
, because if I remove that configuration then the serve works.