Read the statement by Michael Teeuw here.
Issues running MM in a 32 bits laptop and Debian 12
-
Hi!
I’m trying to run MM in an old 32 bits laptop using Debian 12, but I´m having a lot of compatibility problems. I hope someone can help me!I couldn’t follow the “standard” installation process , so I followed these steps:
-
- Install node.js and npm using “
sudo apt install nodejs npm -y
” instead of the steps explained in https://github.com/nodesource/distributions
- Install node.js and npm using “
-
- Clone and install the MM from Github repository as explained in https://docs.magicmirror.builders/getting-started/installation.html
-
- After running MM, I got the error message “electron.js not found”, so I manually installed the version 4.2.12 using the command
npm install electron@4.2.12 --force
because this version is the last one with 32 bits support (I guess). It fixed the problem.
- After running MM, I got the error message “electron.js not found”, so I manually installed the version 4.2.12 using the command
Now, when I run MM I get the following error:
A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module 'node:fs' at Module._resolveFilename (internal/modules/cjs/loader.js:584:15) at Function.Module._resolveFilename (/home/mirror/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:43:12) at Function.Module._resolveFilename (/home/mirror/MagicMirror/node_modules/module-alias/index.js:49:29) at Function.Module._load (internal/modules/cjs/loader.js:510:25) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/mirror/MagicMirror/js/app.js:4:12) at Object.<anonymous> (/home/mirror/MagicMirror/js/app.js:367:3) at Module._compile (internal/modules/cjs/loader.js:693:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10) Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Any suggestions to fix this problem?
-
-
@Marcophy use my install script
see
https://github.com/sdetweil/MagicMirror_scriptsthat electron is very old and doesn’t support the es6 js language elements we are using
in cases where electron doesn’t exist anymore (armv6l for sure)
the install script sets up for MagicMirror server mode and launches the system browser over it.chromium by default but by using an env variable you can change to Firefox or midori or surf
the install script sets up the proper versions of node and npm as well as handles other tweaks as necessary
-
@Marcophy or, you can try this yourself
download the run-start.sh script into the MagicMirror folder,
make it executable
change the package.json start script to launch run-start.sh
“start”: “./run-start.sh”,then make sure you have chromium or another browser and add the
env variable as documented in my script readme(shown as web page for repo on github)then npm start will launch run-start,
which will launch MagicMirror server mode
and once it’s up, it will launch the browser you select