MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Issues with electron.js on installation

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 3 Posters 4.2k Views 3 Watching
    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.
    • A Offline
      azmuth94
      last edited by paviro

      npm start dev
      
      > magicmirror@2.0.0 start /home/pi/MagicMirror
      > electron js/electron.js "dev"
      
      sh: 1: electron: not found
      
      npm ERR! Linux 4.4.11-v7+
      npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "dev"
      npm ERR! node v4.2.1
      npm ERR! npm  v2.14.7
      npm ERR! file sh
      npm ERR! code ELIFECYCLE
      npm ERR! errno ENOENT
      npm ERR! syscall spawn
      npm ERR! magicmirror@2.0.0 start: `electron js/electron.js "dev"`
      npm ERR! spawn ENOENT
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.0.0 start script 'electron js/electron.js "dev"'.
      npm ERR! This is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     electron js/electron.js "dev"
      npm ERR! You can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      

      Note from admin: Please use Markdown on code snippets for easier reading!

      1 Reply Last reply Reply Quote 0
      • A Offline
        azmuth94
        last edited by

        also forgot to mention i am using a RPi 3

        Alternatively I thought trying a manual installation would have a different outcome and have come across the following issue:
        0_1475079599447_upload-ac58cf39-e797-4bd0-bf57-248744771e2e

        strawberry 3.141S 1 Reply Last reply Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer @azmuth94
          last edited by

          @azmuth94 did you try to update node? you’re running 4.2, I’m using 6.5

          Please create a github issue if you need help, so I can keep track

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            azmuth94 @strawberry 3.141
            last edited by

            @strawberry-3.141 i upgraded my version of node to 6.6.0, still same issue:
            0_1475083613232_upload-013572d4-419b-48c6-a1d4-9cc765263dc1

            1 Reply Last reply Reply Quote 1
            • J Offline
              jc21
              last edited by

              Try:

              sudo npm install -g electron
              

              If you get any errors with that command then something needs fixing outside of the MagicMirror package and installation.

              A 1 Reply Last reply Reply Quote 1
              • A Offline
                azmuth94 @jc21
                last edited by

                @jc21 yes issue was solved once I set my system time

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy