MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MagicMirror won't start after update



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



  • @harrycool25 how did u update?



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



  • @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?



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

    Do

    cd ~/MagicMirror
    rm -rf node_modules
    npm install
    

    Then
    npm start


Log in to reply