MagicMirror not working anymore
I tried to get the MMM-Motion-Detection working but did not succeed so far. But now my MagicMirror is not starting anymore. Maybe I did some additional changes, I’m not shure if there was anything important during tests. I got these logs from
MagicMirror > at Module._compile (module.js:570:32) x MagicMirror > at Object.Module._extensions..js (module.js:579:10) x MagicMirror > at Module.load (module.js:487:32) x MagicMirror > at tryModuleLoad (module.js:446:12) x MagicMirror > at Function.Module._load (module.js:438:3) x MagicMirror > at Module.require (module.js:497:17) x PM2 > App [MagicMirror] with id  and pid , exited with code  via signal [SIGINT] x PM2 > Starting execution sequence in -fork mode- for app name:MagicMirror id:0 x PM2 > App name:MagicMirror id:0 online x MagicMirror > Error: ENOENT: no such file or directory, open 'package.json' x MagicMirror > at Error (native) x MagicMirror > at Object.fs.openSync (fs.js:642:18) x MagicMirror > at Object.fs.readFileSync (fs.js:510:33) x MagicMirror > at Object. (/home/pi/MagicMirror/js/app.js:15:32) x MagicMirror > at Module._compile (module.js:570:32) x MagicMirror > at Object.Module._extensions..js (module.js:579:10) x MagicMirror > at Module.load (module.js:487:32) x MagicMirror > at tryModuleLoad (module.js:446:12) x MagicMirror > at Function.Module._load (module.js:438:3) x MagicMirror > at Module.require (module.js:497:17)
Can anyone help me with that error? For me it looks like a problem in the core
/js/app.js, but I#m a noob on these things…
Maybe I did some additional changes,
Maybe you should reinstall MM. It takes less than 30 minutes.
strawberry 3.141 last edited by
Error: ENOENT: no such file or directory, open ‘package.json’
@mykle1 so simply
rm -r MagicMirror? Or do I have to clean anything else before reinstall?
@strawberry the file itself looks quite normal and I don’t know what to look for. No entry for
/js/app.jsas far as I see. Maybe you can give me a hint?
I’ve reinstalled without removing a thing, wanting to save certain things from a previous install. You can do this by simply renaming your current MagicMirror folder.
If you want to completely remove your previous installation:
rm -rf MagicMirror
well I did move the old folder and did a fresh install with the installer script, but it still gives the same errors. Maybe I did something wrong during installation of the dependencies of MMM-Motion-Detection. Any clue of what that might be or where I can find a log that might shine some light on?
Hold on. Did you try to install MMM-Motion-Detection again? Or are you saying you have errors immediately following the install of MagicMirror?
Can you post your terminal output?
well I’m not shure what happened, but I think I called
npm install python-shellinstead of just using
npm installinside the module folder (which would have installed python-shell correctly.
I just started from scratch and took a fresh jessie image.
Uhh . . .