• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 3.7k 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 Sep 28, 2016, 8:00 PM Sep 28, 2016, 3:58 PM

    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 Sep 28, 2016, 4:21 PM

      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

      S 1 Reply Last reply Sep 28, 2016, 4:32 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @azmuth94
        last edited by Sep 28, 2016, 4:32 PM

        @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 Sep 28, 2016, 5:27 PM Reply Quote 0
        • A Offline
          azmuth94 @strawberry 3.141
          last edited by Sep 28, 2016, 5:27 PM

          @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 Sep 29, 2016, 3:59 AM

            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 Sep 29, 2016, 10:24 PM Reply Quote 1
            • A Offline
              azmuth94 @jc21
              last edited by Sep 29, 2016, 10:24 PM

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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                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