Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

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

    Troubleshooting
    3
    4
    1830
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thelonegeek last edited by

      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 run-start.sh

      run-start.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 run-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

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor @Thelonegeek last edited by

        @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?

        T 1 Reply Last reply Reply Quote 0
        • T
          Thelonegeek @bhepler last edited by Thelonegeek

          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
          [https://www.youtube.com/watch?v=ejnE6DM-hqU](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
          [https://www.npmjs.com/package/electron](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 >>>> [https://www.youtube.com/watch?v=ejnE6DM-hqU](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

          1 Reply Last reply Reply Quote 0
          • piedaniel
            piedaniel last edited by

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

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy