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

Error updating MM

Scheduled Pinned Locked Moved Solved Troubleshooting
9 Posts 4 Posters 1.5k Views 4 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.
  • S Away
    sdetweil @kevmang
    last edited by Oct 4, 2023, 2:34 PM

    @kevmang said in Error updating MM:

    The following NEW packages will be installed:
    nodejs
    0 upgraded, 1 newly installed, 0 to remove and 404 not upgraded.
    Need to get 0 B/26.8 MB of archives.
    After this operation, 177 MB of additional disk space will be used.
    Selecting previously unselected package nodejs.
    (Reading database … 94745 files and directories currently installed.)
    Preparing to unpack …/nodejs_18.18.0-1nodesource1_armhf.deb …
    Unpacking nodejs (18.18.0-1nodesource1) …
    Setting up nodejs (18.18.0-1nodesource1) …
    Processing triggers for man-db (2.8.5-2) …

    yeh, thats interesting… says success and failure at the same time, but DID fail…

    can u run this my itself
    bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/node20_install.sh)”

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil @kevmang
      last edited by Oct 4, 2023, 2:36 PM

      @kevmang also, do these commands

      nvm
      and
      n

      I wonder if there was a separate way to install node…

      I know I use them at times…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Oct 6, 2023, 8:53 AM Reply Quote 0
      • K Offline
        kevmang @sdetweil
        last edited by Oct 6, 2023, 8:53 AM

        @sdetweil Thanks for your advice. I’ve completely removed npm and node and that solved the errors when installing but MM still doesn’t appear. Here is the log from the install:

        pi@raspberrypi:~$ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following packages will be REMOVED:
          nodejs*
        0 upgraded, 0 newly installed, 1 to remove and 401 not upgraded.
        After this operation, 177 MB disk space will be freed.
        (Reading database ... 100354 files and directories currently installed.)
        Removing nodejs (18.18.0-1nodesource1) ...
        dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules' not empty so not removed
        Processing triggers for man-db (2.8.5-2) ...
        Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
        Hit:2 http://archive.raspberrypi.org/debian buster InRelease
        Reading package lists... Done
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        ca-certificates is already the newest version (20200601~deb10u2).
        curl is already the newest version (7.64.0-4+deb10u6).
        gnupg is already the newest version (2.2.12-1+rpi1+deb10u1).
        0 upgraded, 0 newly installed, 0 to remove and 401 not upgraded.
        deb [  signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
        Get:1 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
        Get:2 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [5,267 B]
        Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
        Hit:4 http://archive.raspberrypi.org/debian buster InRelease
        Fetched 17.4 kB in 1s (15.1 kB/s)
        Reading package lists... Done
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following NEW packages will be installed:
          nodejs
        0 upgraded, 1 newly installed, 0 to remove and 401 not upgraded.
        Need to get 0 B/26.8 MB of archives.
        After this operation, 177 MB of additional disk space will be used.
        Selecting previously unselected package nodejs.
        (Reading database ... 94730 files and directories currently installed.)
        Preparing to unpack .../nodejs_18.18.0-1nodesource1_armhf.deb ...
        Unpacking nodejs (18.18.0-1nodesource1) ...
        Setting up nodejs (18.18.0-1nodesource1) ...
        Processing triggers for man-db (2.8.5-2) ...
        doing test run = false
        update log will be in /home/pi/MagicMirror/installers/upgrade.log
        Check current Node installation ...
        Node currently installed. Checking version number.
        Minimum Node version: v18.18.0
        Installed Node version: v18.18.0
        No Node.js upgrade necessary.
        Check current NPM installation ...
        NPM currently installed. Checking version number.
        Minimum npm version: V9.8.1
        Installed npm version: V9.8.1
        No npm upgrade necessary.
        
        saving custom.css
        local version 2.25.0 already same as master 2.25.0
        restoring custom.css
        
        S 1 Reply Last reply Oct 6, 2023, 12:30 PM Reply Quote 0
        • S Away
          sdetweil @kevmang
          last edited by sdetweil Oct 6, 2023, 12:36 PM Oct 6, 2023, 12:30 PM

          @kevmang

          local version 2.25.0 already same as master 2.25.0

          you need to use force on the upgrade command instead of apply

          also, show the output of npm start

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Oct 7, 2023, 2:16 AM Reply Quote 1
          • K Offline
            kevmang @sdetweil
            last edited by Oct 7, 2023, 2:16 AM

            @sdetweil Thanks for the help! Used force to re-install MagicMirror again but still had an electron issue so I deleted the entier node_modules director as wel as the package_lock file and re-installed the modules. Then I had an error with MMM-MyCalendar which I fixed using the advice from here: https://github.com/jclarke0000/MMM-MyCalendar/issues/40

            Most importantly everything works just fine now :) Thanks again!

            S S 2 Replies Last reply Oct 7, 2023, 2:38 AM Reply Quote 1
            • S Away
              sdetweil @kevmang
              last edited by Oct 7, 2023, 2:38 AM

              @kevmang awesome,!!! thanks for the feedback

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • S Offline
                sil3ntstorm @kevmang
                last edited by Oct 7, 2023, 9:30 PM

                @kevmang Did you completely empty the node_modules folder? Did you have to run bash again from above?
                And then you had to completely reinstall all the modules you previously had on it?

                S 1 Reply Last reply Oct 8, 2023, 9:08 AM Reply Quote 0
                • S Offline
                  stoffel @sil3ntstorm
                  last edited by Oct 8, 2023, 9:08 AM

                  @sil3ntstorm i make sudo rm -r /usr/lib/node_modules
                  then i used the upgrade-script
                  bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply.
                  the script above
                  bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/node20_install.sh)”
                  not work for me, error arch=: Zeile 1: “#!/bin/bash: Datei oder Verzeichnis nicht gefunden.

                  after that i make npm install in the MagicMirror directory. Now all works fine for me

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    6/9
                    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