• 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.

Unable to run MM install script with raspbian bookworm

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 2 Posters 2.9k 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.
  • I Offline
    ijahmc2u
    last edited by Oct 17, 2023, 1:14 PM

    this is the error that I am getting …
    ReferenceError: primordials is not defined
    at evalmachine.:43:5
    at Object. (/usr/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1287:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object. (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)

    Node.js v20.5.1
    npm installation Done! version=V
    It seems like MagicMirror is already installed.
    To prevent overwriting, the installer will be aborted.
    Please rename the ~/MagicMirror folder and try again.

    S 2 Replies Last reply Oct 17, 2023, 1:26 PM Reply Quote 0
    • S Offline
      sdetweil @ijahmc2u
      last edited by Oct 17, 2023, 6:23 PM

      @ijahmc2u please don’t do the node20 stuff it messes it all up

      flash the SD card
      boot , configure wifi…
      reboot run my install script

      then add the; ther stuff

      do NOT DO ANY NODE INSTALL . my script will handle all that.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      I 2 Replies Last reply Oct 18, 2023, 1:24 AM Reply Quote 0
      • S Offline
        sdetweil @ijahmc2u
        last edited by Oct 17, 2023, 1:26 PM

        @ijahmc2u can you show me the ~/install.log

        you flash the SD card
        boot and first thing run my install script

        then add other stuff. opencv… etc

        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 @ijahmc2u
          last edited by Oct 17, 2023, 1:57 PM

          @ijahmc2u that sounds like the old script

          so do

          sudo apt-get remove nodejs npm -y
          

          then after

          hash -r
          

          then node -v
          should be command not found

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          I 2 Replies Last reply Oct 17, 2023, 2:04 PM Reply Quote 0
          • I Offline
            ijahmc2u @sdetweil
            last edited by Oct 17, 2023, 2:04 PM

            @sdetweil

            this was a new sd card and new install …

            for some reason it is telling me the log file needs to end in png… jpeg not in .log
            anyway to get ti working I had to do the following

            sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg
            curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
            NODE_MAJOR=20
            echo “deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main” | sudo tee /etc/apt/sources.list.d/nodesource.list
            sudo apt-get update && sudo apt-get install nodejs -y

            S 1 Reply Last reply Oct 17, 2023, 6:23 PM Reply Quote 0
            • I Offline
              ijahmc2u @sdetweil
              last edited by Oct 17, 2023, 2:17 PM

              @sdetweil
              sorry just lost power for a bit there…
              so to answer your questions this was a fresh install of MM on a new SD card
              no I installed the opencv and dlib first as I have had issues with them in the past so I built them from source…
              while doing some reading I installed nodejs from the steps on their site and then ran your script and now it installed everything and ran pm2 as well … vnc is not working but thats ok for now.

              also note I was trying to upload my install.log but it won’t let me upload a .log file

              1 Reply Last reply Reply Quote 0
              • I Offline
                ijahmc2u
                last edited by Oct 17, 2023, 2:42 PM

                @sdetweil
                admin@rasmm:~ $ node -v
                v20.8.1

                S 1 Reply Last reply Oct 17, 2023, 2:46 PM Reply Quote 0
                • S Offline
                  sdetweil @ijahmc2u
                  last edited by Oct 17, 2023, 2:46 PM

                  @ijahmc2u hm… but why? should be 20.8.0

                  do

                  n ls
                  

                  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 @ijahmc2u
                    last edited by Oct 17, 2023, 6:23 PM

                    @ijahmc2u please don’t do the node20 stuff it messes it all up

                    flash the SD card
                    boot , configure wifi…
                    reboot run my install script

                    then add the; ther stuff

                    do NOT DO ANY NODE INSTALL . my script will handle all that.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    I 2 Replies Last reply Oct 18, 2023, 1:24 AM Reply Quote 0
                    • I Offline
                      ijahmc2u @sdetweil
                      last edited by Oct 18, 2023, 1:24 AM

                      @sdetweil

                      ok will try that

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        ijahmc2u @sdetweil
                        last edited by Oct 18, 2023, 1:00 PM

                        @sdetweil
                        ok that worked please close this one … looks like I am having another problem with the module mmm-face-reco-dnn all other modules seem to be installing ok

                        S 1 Reply Last reply Oct 18, 2023, 1:40 PM Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          1/13
                          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