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

After update 2.23.0 crash

Scheduled Pinned Locked Moved Bug Hunt
56 Posts 9 Posters 15.9k Views 8 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 @JerryP
    last edited by Apr 4, 2023, 8:42 PM

    @JerryP said in After update 2.23.0 crash:

    /home/pi/MagicMirror/package-lock.json

    erase that file… seems u might have used sudo at some time before …

    sudo rm /home/pi/MagicMirror/package-lock.json

    then npm install again

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    J 1 Reply Last reply Apr 4, 2023, 8:43 PM Reply Quote 0
    • S Offline
      swvalenti Project Sponsor @sdetweil
      last edited by Apr 4, 2023, 8:42 PM

      @sdetweil said in After update 2.23.0 crash:

      @swvalenti yes, there is no package.json describing the dependencies…

      some of the local add on scripts use request and jsdom and others…

      So I should revert back to 2.22 then?

      1 Reply Last reply Reply Quote 0
      • J Offline
        JerryP @sdetweil
        last edited by Apr 4, 2023, 8:43 PM

        @sdetweil

        pi@raspberrypi:~/MagicMirror $ ls
         CHANGELOG.md   Collaboration.md   core  'DISPLAY=:0'   index.html   jest.config.js   jsconfig.json   magicmirror@2.23.0   module-types.ts   oud         run-start.sh   splashscreen   th.json        vendor
         clientonly     config             css    fonts         installers   js               LICENSE.md      modules              node_modules      README.md   serveronly     tests          translations
        pi@raspberrypi:~/MagicMirror $ npm install
        npm ERR! code ENOTEMPTY
        npm ERR! syscall rename
        npm ERR! path /home/pi/MagicMirror/node_modules/acorn
        npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig
        npm ERR! errno -39
        npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig'
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/pi/.npm/_logs/2023-04-04T20_43_20_803Z-debug-0.log
        
        S S 2 Replies Last reply Apr 4, 2023, 8:45 PM Reply Quote 0
        • S Offline
          sdetweil
          last edited by Apr 4, 2023, 8:44 PM

          @swvalenti no, i think you got bit by the security cleanup

          if a package is not listed in the (any) dependencies and you run npm install it will be removed…

          so, go thru the requires in the .js files and do this for each one

          https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

          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 @JerryP
            last edited by Apr 4, 2023, 8:45 PM

            @JerryP fun, fun

            rm -rf node_modules

            and then npm install again

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J H 2 Replies Last reply Apr 4, 2023, 8:48 PM Reply Quote 0
            • J Offline
              JerryP @sdetweil
              last edited by Apr 4, 2023, 8:48 PM

              @sdetweil same error

              pi@raspberrypi:~/MagicMirror $ rm -rf node_modules
              pi@raspberrypi:~/MagicMirror $ npm install
              npm ERR! code ENOENT
              npm ERR! syscall open
              npm ERR! path /home/pi/MagicMirror/package.json
              npm ERR! errno -2
              npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/package.json'
              npm ERR! enoent This is related to npm not being able to find a file.
              npm ERR! enoent 
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/pi/.npm/_logs/2023-04-04T20_47_07_273Z-debug-0.log
              pi@raspberrypi:~/MagicMirror $ 
              
              S 1 Reply Last reply Apr 4, 2023, 8:51 PM Reply Quote 0
              • S Offline
                sdetweil @JerryP
                last edited by Apr 4, 2023, 8:51 PM

                @JerryP looks like u got carried away with sudo rm /home/pi/MagicMirror/package-lock.json (notice the -lock)

                and deleted the package.json

                git checkout package.json

                and npm install again

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  swvalenti Project Sponsor @JerryP
                  last edited by Apr 4, 2023, 9:04 PM

                  @JerryP said in After update 2.23.0 crash:

                  @sdetweil

                  pi@raspberrypi:~/MagicMirror $ ls
                   CHANGELOG.md   Collaboration.md   core  'DISPLAY=:0'   index.html   jest.config.js   jsconfig.json   magicmirror@2.23.0   module-types.ts   oud         run-start.sh   splashscreen   th.json        vendor
                   clientonly     config             css    fonts         installers   js               LICENSE.md      modules              node_modules      README.md   serveronly     tests          translations
                  pi@raspberrypi:~/MagicMirror $ npm install
                  npm ERR! code ENOTEMPTY
                  npm ERR! syscall rename
                  npm ERR! path /home/pi/MagicMirror/node_modules/acorn
                  npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig
                  npm ERR! errno -39
                  npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig'
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /home/pi/.npm/_logs/2023-04-04T20_43_20_803Z-debug-0.log
                  

                  That didn’t work, no worries I will revert

                  S S 2 Replies Last reply Apr 4, 2023, 9:07 PM Reply Quote 0
                  • S Offline
                    sdetweil @swvalenti
                    last edited by sdetweil Apr 4, 2023, 9:08 PM Apr 4, 2023, 9:07 PM

                    @swvalenti what didn’t work?

                    u are supposed to be doing the npm install of the missing libs in the module (MMM-PGA) folder

                    i don’t think revert will help, the undocumented libraries were deleted by npm… not us

                    that .acorn file needs to be deleted

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      swvalenti Project Sponsor @swvalenti
                      last edited by Apr 4, 2023, 9:08 PM

                      @swvalenti said in After update 2.23.0 crash:

                      @JerryP said in After update 2.23.0 crash:

                      @sdetweil

                      pi@raspberrypi:~/MagicMirror $ ls
                       CHANGELOG.md   Collaboration.md   core  'DISPLAY=:0'   index.html   jest.config.js   jsconfig.json   magicmirror@2.23.0   module-types.ts   oud         run-start.sh   splashscreen   th.json        vendor
                       clientonly     config             css    fonts         installers   js               LICENSE.md      modules              node_modules      README.md   serveronly     tests          translations
                      pi@raspberrypi:~/MagicMirror $ npm install
                      npm ERR! code ENOTEMPTY
                      npm ERR! syscall rename
                      npm ERR! path /home/pi/MagicMirror/node_modules/acorn
                      npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig
                      npm ERR! errno -39
                      npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig'
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/pi/.npm/_logs/2023-04-04T20_43_20_803Z-debug-0.log
                      

                      That didn’t work, no worries I will revert

                      The package.json showed no issue with that command. It worked when I reverted no issue.

                      S 1 Reply Last reply Apr 4, 2023, 9:09 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      2 / 6
                      • First post
                        11/56
                        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