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

MM doesn't start after fresh install on Stretch lite



  • Hello,

    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

    Error

    pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

    magicmirror@2.4.1 start /home/pi/MagicMirror
    sh run-start.sh

    /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! magicmirror@2.4.1 start: sh run-start.sh
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the magicmirror@2.4.1 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
    pi@raspberrypi:~/MagicMirror $



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



  • @cruunnerr .

    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?