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.

    module update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 2 Posters 646 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.
    • S Offline
      sdetweil @pat59
      last edited by

      @pat59 do

      cd ~/MagicMirror/modules/MMM-GooglePhotos
      npm install
      

      then restart MagicMirror

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • P Offline
        pat59
        last edited by

        Thanks for your feedback but it won’t restart.

        pi@raspberrypi:~ $ cd ~/MagicMirror/modules/MMM-GooglePhotos
        pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ npm instal
        npm ERR! code ENOTEMPTY
        npm ERR! syscall rename
        npm ERR! path /home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios
        npm ERR! dest /home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/.axios-r4bdKtOS
        npm ERR! errno -39
        npm ERR! ENOTEMPTY: directory not empty, rename ‘/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios’ -> ‘/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/.axios-r4bdKtOS’

        npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-03-13T15_20_28_109Z-debug-0.log
        pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $
        pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ pm2 restart MagicMirror
        Use --update-env to update environment variables
        [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 1 ])
        [PM2] MagicMirror ✓
        ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
        │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
        ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
        │ 1 │ MagicMirror │ fork │ 2 │ online │ 0% │ 2.4mb │
        │ 0 │ mm │ fork │ 0 │ stopped │ 0% │ 0b │
        └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
        pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @pat59
          last edited by

          @pat59 ok, back to the module folder again, and do

          sudo rm -rf node_modules
          npm install
          

          and restart mm

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • P Offline
            pat59
            last edited by

            sorry it doesn’t restart
            pi@raspberrypi:~ $ cd ~/MagicMirror/modules
            pi@raspberrypi:~/MagicMirror/modules $ sudo rm -rf node_modules
            pi@raspberrypi:~/MagicMirror/modules $ npm install

            magicmirror@2.26.0 postinstall
            npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
            "

            magicmirror@2.26.0 install-vendor
            echo "Installing vendor files …
            " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

            Installing vendor files …

            up to date in 3s

            magicmirror@2.26.0 install-fonts
            echo "Installing fonts …
            " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

            Installing fonts …

            up to date in 2s
            MagicMirror² installation finished successfully!

            magicmirror@2.26.0 prepare
            [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.

            husky - Git hooks installed

            up to date in 33s

            196 packages are looking for funding
            run npm fund for details
            pi@raspberrypi:~/MagicMirror/modules $ pm2 start mm
            [PM2] Applying action restartProcessId on app [mm](ids: [ 0 ])
            [PM2] mm ✓
            [PM2] Process successfully started
            ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
            │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
            ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
            │ 1 │ MagicMirror │ default │ 2.26.0 │ fork │ 911 │ 3m │ 0 │ online │ 0% │ 2.5mb │ pi │ enabled │
            │ 0 │ mm │ default │ N/A │ fork │ 1697 │ 0s │ 0 │ online │ 0% │ 2.4mb │ pi │ disabled │
            └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
            pi@raspberrypi:~/MagicMirror/modules $

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @pat59
              last edited by

              @pat59 no, the MODULE folder.

              cd ~/MagicMirror/modules/MMM-GooglePhotos
              sudo rm -rf node_modules
              npm install
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • P Offline
                pat59
                last edited by

                yes great it works very well thanking you for your sympathy and your patience
                Sincerely

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