Read the statement by Michael Teeuw here.
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 startinside 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.
-
@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 pullbut did NOT do the
npm installrequired for this update
-
@sdetweil
I’ve also runnpm installinside 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 installThen
npm start
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login