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

Cant run npm start or npm install on my macbook air please help

  • 0_1525903830017_Screen Shot 2018-05-10 at 2.53.16 AM.png

    npm start

    magicmirror@2.3.1 start /Users/vishalgangwar/Desktop/MagicMirror
    sh line 4: electron: command not found
    npm ERR! file sh
    npm ERR! code ELIFECYCLE
    npm ERR! errno ENOENT
    npm ERR! syscall spawn
    npm ERR! magicmirror@2.3.1 start: sh
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the magicmirror@2.3.1 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm WARN Local package.json exists, but node_modules missing, did you mean to install?

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/vishalgangwar/.npm/_logs/2018-05-09T21_23_11_322Z-debug.log0_1525903835064_Screen Shot 2018-05-10 at 2.52.39 AM.png

  • Project Sponsor

    @thelonegeek It sure looks like electron isn’t installed on your macbook. Have you tried installing electron and then re-running the npm install inside the Magic Mirror folder?

  • Thanks for the reply @bhepler
    Actually i am trying to build a magic mirror as my last sem project i could easily setup the michmich mirror by running automatic curl command and everything was working and it was displaying all the normal module which comes by default and everything was wokring normally and i was easily able to run the mirror on the Rpi b+ model but then i dont know programming i am complete noob in python js and this magic mirror world so to fool my teacher i thought to put this guys projet and show to my teachers.
    Also i am trying the follow this guy AI_SMART_MIRROR
    [](link url)

    But i dont know why this is happening again and again that even when i run npm sudo npm install && npm start or sudo npm instal it is always showing me errors one or other and in the video the guy is peacufully installing everything and the running the mirror on the mabcook air itself this is my problme bro please help i have to make the mirror in 7 days my project submission is on 18th and i have no clue what to do i know i have never used npm also i dont know how to setup the mirror and test on the macb i have Rpi b_ macbook air net i tried every freaking things and nothing works

    I tried installing electronnpm from thi site
    [](link url)
    It is still throws these errors
    Please help me to setup this mirror on my macbook air i am not able to start only the npm start shows so many error what to do please help
    I am trying this tutorial >>>> [](link url)

    1_1525964161989_Screen Shot 2018-05-10 at 8.25.32 PM.png

    0_1525964161989_Screen Shot 2018-05-10 at 8.25.38 PM.png

  • Need to install X-Code on your mac. If not, you will not able to run the app.

Log in to reply