meshmonitor icon indicating copy to clipboard operation
meshmonitor copied to clipboard

[BUG] 3.6.3 - Linux Raspbian baremetal ; Node = v25.6.0

Open kokoshell opened this issue 9 months ago • 4 comments

Image

kokoshell avatar Feb 21 '26 06:02 kokoshell

Node25 isn't supported yet, I recommend using Node24

Yeraze avatar Feb 21 '26 13:02 Yeraze

Node.js 25 Compatibility Update

We've tested MeshMonitor against Node.js 25.6.0 and all 2521 unit tests pass. The code itself is fully compatible with Node 25.

The issue you're hitting on Raspbian baremetal is most likely the better-sqlite3 native module failing to load because it was compiled for a different Node.js major version. Here's how to fix it:

Steps to Resolve

  1. Rebuild native modules for Node 25:

    cd /path/to/meshmonitor
    npm rebuild better-sqlite3
    
  2. If that doesn't work, reinstall dependencies entirely:

    rm -rf node_modules
    npm install --legacy-peer-deps
    

    The --legacy-peer-deps flag is needed because npm 11 (bundled with Node 25) has stricter peer dependency resolution.

  3. Verify the rebuild worked:

    node -e "require('better-sqlite3')"
    

    If this runs without errors, you're good.

Build Tools Required

On Raspbian, you'll need build tools installed to compile native modules:

sudo apt-get install -y python3 make gcc g++

If You Still Have Issues

If you're seeing a different error (not the better-sqlite3 native module), please share the full error output/screenshot and we can dig deeper. The screenshot in the issue is hard to parse — the specific error message would help.


We've also added Node.js 25.x to our CI test matrix in PR #1979 so we'll catch any future regressions.

Yeraze avatar Feb 21 '26 14:02 Yeraze

Is this still an issue?

Yeraze avatar Feb 27 '26 14:02 Yeraze

Nope, Yeraze can close it thank you !

kokoshell avatar Feb 27 '26 15:02 kokoshell