Hi all, brand new to MM and fairly new to Pi here. I tried a manual install of MM as well as the auto installer from @sdetweil and both failed. I completely reformatted my brand new SD card and did a fresh install of Raspbian and tried the auto installer again, and am getting the same errors.
I’ve noticed a few errors during the install process that may help troubleshoot, but I’m not sure how to fix them. Any help would be very much appreciated!
During the install dependencies:
Error: Generated checksum for "electron-v6.1.12-linux-armv7l.zip" did not match expected checksum.
at Hash.hasher.on (/home/pi/MagicMirror/node_modules/sumchecker/index.js:151:20)
at Hash.emit (events.js:198:13)
at emitReadable_ (_stream_readable.js:555:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: electron@6.1.12 (node_modules/electron):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: electron@6.1.12 postinstall: `node install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
Then once I get the “We’re ready! Run pm2 start MagicMirror[…]” message and it shows “status” as online, but then nothing happens. If I try “npm start” from the MM directory, I get this error:
> magicmirror@2.12.0 start /home/pi/MagicMirror
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
sh: 1: ./node_modules/.bin/electron: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.12.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-16T09_15_05_903Z-debug.log