Read the statement by Michael Teeuw here.
Difficulty getting MMM-Transitfeed working
- 
 @UncleRoger run npm rebuild in the module folder this module has a binary that has to match the electron version. 
 the distributed version does not.
- 
 @UncleRoger or better cd ~/MagicMirror 
 npm install @electron/rebuild
 cd modules/MMM-Transitfeed
 …/…/node_modules/.bin/electron-rebuild
 cd ~/MagicMirrorand restart MagicMirror however you do that
- 
 I gave that a bash and am still getting the same error. I even wiped the system and started from scratch just in case I’d done something to make things worse. 
- 
 @UncleRoger hm… I installed, did the npm install gtfs ran, failed as version mismatch 
 I then did the../../node_modules/.bin/electron-rebuild ✔ Rebuild Completerestart mm and no problems, using the default config  
- 
 I appreciate the help, as always… I wiped the system again, reinstalled the OS and MM, did the rebuild. Still the same error except the version numbers are different: [2024-06-21 15:30:32.001] [ERROR] (node:53456) UnhandledPromiseRejectionWarning: Error: The module '/home/pi/MagicMirror/node_modules/better-sqlite3/build/Release/better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 127. This version of Node.js requires NODE_MODULE_VERSION 121. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`).I should mention that this is on a Pi4 (probably 2gb) with no other modules installed. Maybe it’s just not meant to be. 
- 
 @UncleRoger what folder are you in when you do the electron-rebuild? 
- 
 The MMM-transitfeed module directory: { cd ~/MagicMirror npm install @electron/rebuild cd ~/MagicMirror/modules/MMM-transitfeed ../../node_modules/.bin/electron-rebuild cd ~/MagicMirror }I basically copy-and-pasted that. 
- 
 @UncleRoger and when the electron-rebuild ran it should have said 
 something about sqllite
 and rebuild complete, like mine above
- 
 Nothing about sqlite but it did say “Rebuild Complete”: pi@MagicMirrorDev:~/MagicMirror $ { cd ~/MagicMirror npm install @electron/rebuild cd ~/MagicMirror/modules/MMM-transitfeed ../../node_modules/.bin/electron-rebuild cd ~/MagicMirror } added 81 packages in 11s 253 packages are looking for funding run `npm fund` for details ✔ Rebuild Complete pi@MagicMirrorDev:~/MagicMirror $This time around, I didn’t do the sqlite update: { cd ~/MagicMirror rm -r node_modules/better-sqlite3/ npm install better-sqlite3 --build-from-source --runtime=electron --target=26.4.3 --dist-url=https://electronjs.org/headers --force }But I don’t think it worked any better when I did. I’ll try that and then do the rebuild. 
- 
 @UncleRoger don’t install sql again, else you have to rebuild again 

