• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Issues running MM in a 32 bits laptop and Debian 12

Scheduled Pinned Locked Moved Unsolved Troubleshooting
3 Posts 2 Posters 235 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Marcophy
    last edited by May 28, 2024, 11:08 AM

    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:

      1. Install node.js and npm using “sudo apt install nodejs npm -y” instead of the steps explained in https://github.com/nodesource/distributions
      1. Clone and install the MM from Github repository as explained in https://docs.magicmirror.builders/getting-started/installation.html
      1. 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.

    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?

    S 2 Replies Last reply May 28, 2024, 11:43 AM Reply Quote 0
    • S Offline
      sdetweil @Marcophy
      last edited by sdetweil May 28, 2024, 11:47 AM May 28, 2024, 11:43 AM

      @Marcophy use my install script
      see
      https://github.com/sdetweil/MagicMirror_scripts

      that 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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Marcophy
        last edited by sdetweil May 28, 2024, 12:19 PM May 28, 2024, 12:17 PM

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy