UNSOLVED MM doesn't start after fresh install on Stretch lite
I installed Magic Mirror on RasPi 2 with stretch Lite via SSH. I used the installer command
bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”
the installation went smooth and fast.
but after rebooting i am seeing the console with pi logged in. THe MM doesnt start.
I SSed into pi and from MM directory gave command DISPLAY=:0 npm start
this give mefollowing error. could any one guide please
pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start
email@example.com start /home/pi/MagicMirror
/home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! firstname.lastname@example.org start:
npm ERR! spawn ENOENT
npm ERR! Failed at the email@example.com 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/2018-09-09T12_04_18_212Z-debug.log
cruunnerr last edited by
If you use the lite version of raspbian, u need to use this guide: https://github.com/MichMich/MagicMirror/wiki/jessie-lite-installation-guide
The guide also works with stretch, but you probably need to install extra stuff manually, when using modules
But i would recommend to use the full version of raspbian stretch.
Thanks for replying. I just did it on full version on raspbian stretch. Installer went fine. I also pressed y when it asked for installing pm2
now after i reboot the pi, MagicMirror splash screen comes but i boot into the desktop
when i ran npm start dev , i can see modules working.
if i try to run pm2 log, i get error
-bash: pm2: command not found
What am i doing wrong in here?