Fix
#426 — Windows install failure: better_sqlite3.node is not a valid Win32 application
When running npm install -g omniroute on Windows, the bundled Linux native binary was used instead of a Windows-compatible one.
Fix: Added Strategy 1.5 to scripts/postinstall.mjs:
- Automatically downloads the correct prebuilt binary for the current OS/arch (
win32-x64,win32-arm64, etc.) using@mapbox/node-pre-gyp— bundled withinbetter-sqlite3, no extra installations needed. - No need for node-gyp, Python, or Visual Studio Build Tools.
- Falls back to
npm rebuildif the prebuilt download fails. - Provides clear Windows-specific error messages with step-by-step manual fix instructions.
If you still encounter issues after upgrading, run manually:
cd "%AppData%\npm\node_modules\omniroute\app\node_modules\better-sqlite3"
npx @mapbox/node-pre-gyp install --fallback-to-build=falseFull Changelog: v2.6.9...v2.6.10