github diegosouzapw/OmniRoute v2.6.10
v2.6.10 — Windows better-sqlite3 fix (#426)

latest release: v2.7.0
5 hours ago

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 within better-sqlite3, no extra installations needed.
  • No need for node-gyp, Python, or Visual Studio Build Tools.
  • Falls back to npm rebuild if 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=false

Full Changelog: v2.6.9...v2.6.10

Don't miss a new OmniRoute release

NewReleases is sending notifications on new releases.