Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED MagicMirror won't start after update

    Troubleshooting
    2
    5
    295
    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.
    • H
      harrycool25 last edited by

      After the recent update (yes, I used the reccommeded command from the FAQ 🙂 ), MagicMirror just won’t start. When attempting to start it using pm2 (previously worked normally), it says it’s started, but no windows show up whatsoever. Then, when I try to run

      npm start
      

      inside the /MagicMirror folder, this error pops up:

      > magicmirror@2.10.1 start /home/pi/MagicMirror
      > ./run-start.sh
      
      App threw an error during load
      /home/pi/MagicMirror/node_modules/ws/lib/websocket.js:347
            ...options
            ^^^
      
      SyntaxError: Unexpected token ...
          at createScript (vm.js:74:10)
          at Object.runInThisContext (vm.js:116:10)
          at Module._compile (module.js:533:28)
          at Object.Module._extensions..js (module.js:580:10)
          at Module.load (module.js:503:32)
          at tryModuleLoad (module.js:466:12)
          at Function.Module._load (module.js:458:3)
          at Module.require (module.js:513:17)
          at require (internal/module.js:11:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/ws/index.js:3:19)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      /home/pi/MagicMirror/node_modules/ws/lib/websocket.js:347
            ...options
            ^^^
      
      SyntaxError: Unexpected token ...
          at createScript (vm.js:74:10)
          at Object.runInThisContext (vm.js:116:10)
          at Module._compile (module.js:533:28)
          at Object.Module._extensions..js (module.js:580:10)
          at Module.load (module.js:503:32)
          at tryModuleLoad (module.js:466:12)
          at Function.Module._load (module.js:458:3)
          at Module.require (module.js:513:17)
          at require (internal/module.js:11:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/ws/index.js:3:19)
      
      

      Can anyone assist me in diagnosing this mess? I am very new to Linux so I have zero idea what’s going on here.

      Thank you all so much, and have a nice day.

      S 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @harrycool25 last edited by

        @harrycool25 how did u update?

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

          @harrycool25 said in MagicMirror won't start after update:

          yes, I used the reccommeded command from the FAQ

          i suspect you did

          git pull
          

          but did NOT do the

          npm install
          

          required for this update

          H 1 Reply Last reply Reply Quote 0
          • H
            harrycool25 @sdetweil last edited by

            @sdetweil
            I’ve also run

            npm install
            

            inside the MagicMirror folder when updating. No idea what happened next. Is there anyway I could, I don’t know, revert changes?

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

              @harrycool25 ok, let’s see if we can fix it

              Do

              cd ~/MagicMirror
              rm -rf node_modules
              npm install
              

              Then
              npm start

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy