CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.51k stars 114 forks source link

Windows 11: npx pagefind --source public - Not Working #100

Closed RenaudDev closed 2 years ago

RenaudDev commented 2 years ago

Hi, very exciting project!

Trying to install on a hugo website and nothing is happening.

I made a build a my website hugo

I installed it: npx pagefind --source "public"

I created a pagefind.yml in the root directory

# pagefind.yml
source: public
bundle_dir: _pagefind

Then when I type npx pagefind

After a couple seconds...nothing happens.

I tried installing it via npm and then run npm run

Nothing happens there either.

RenaudDev commented 2 years ago

Hi,

so afterall, I installed the version 0.6.1 and everything seems to work fine now.

bglw commented 2 years ago

Interesting — So 0.6.1 is working and 0.8.1 was not working?

RenaudDev commented 2 years ago

Interesting — So 0.6.1 is working and 0.8.1 was not working?

Yes exactly

darusk commented 2 years ago

I've just been trying this and have also found the latest releases do not do anything. I've tried multiple versions and it seems to stop working from 0.7.1 onward using the npm wrapper. This is on Windows 10, so probably a more general Windows issue.

If I download the latest manually it seems to run fine, so probably something to do with the npm wrapper?

Aside from that looking forward to trying this out, it seems to fill many gaps in the SSG search area.

bglw commented 2 years ago

Thanks for the context — 0.7.0/0.7.1 is when the pagefind_extended binary was added and was made the default for the npx wrapper, so something in that changeover has obviously failed. I'll inspect that

bglw commented 2 years ago

Sorry for the delay all — this should be fixed by #113 — aiming for a release this week 🙂

bglw commented 2 years ago

👋 ~Hello! This is fixed in the Pagefind v0.9.0 release 🎉~

bglw commented 2 years ago

Sorry, false start — 0.9.1 going out which is on track to resolve this 🤞

bglw commented 2 years ago

👋 Hello! This is fixed in the Pagefind v0.9.1 release 🎉