ERRNO 126, ELIFECYCLE, permission denied on RPI3



  • Hi, thx lots for checking this out!

    I was just did a fresh install of MM on my rpi 3, the installation went fine. But when I tried to start MM by npm start or npm start dev, it fails n reports ERRNO 126, permission denied, and “this is probablity not a problem with npm…additional logging output above”.

    I’ve tried reinstalling MM, reinstalling raspbian (buster), running npm start as root, but still no luck.

    I’ve hooked up my rpi directly to a display via hdmi n everything works fine.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 126
    npm ERR! magicmirror@2.10.1 start: `./run-start.sh`
    npm ERR! Exit status 126
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.10.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/2020-02-13T08_34_23_558Z-debug.log
    

    again thx lots!


  • Project Sponsor

    @someone123416
    can you make sure you are in the MagicMirror directory when you start the Mirror via npm start?
    You need to be in the correct directory for that to work.

    Also, please mkae sure you use code pattern for the output posted. I’ve edited it for you.



  • Thank you very much for your reply!

    Yes, I am in the MM directory (cd MagicMirror) before attempting to start.

    Sorry for the mistake w the output stuff. First time in this forum 😁


  • Project Sponsor

    @someone123416 Have you maybe installed MM with sudo priviledge, having a permission error?

    If you have just installed I would delete the magicmirror folder an reinstall everything and be careful not to sudo anything.
    Use the new installation and upgrade script for that. (i think it is described in the official readme.)



  • Ok, I will give that a shot today!

    Thx