• 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.

Errors trying to run MM on Pi3

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 3.5k Views 2 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.
  • E Offline
    Esinem
    last edited by Esinem Jan 1, 2018, 5:55 PM Jan 1, 2018, 5:54 PM

    Thanks but it didn’t seem to work :-( I tried what you said and then continued with the steps in the tutorial but as you can see it failed. I tried running it again but more errors.

    I’m off to bang my head on a wall! :-) I’m quite prepared to believe I’m doing something idiotic as I’m a total Pi/Raspbrian/Python virgin.

    pi@raspberrypi:~ $ magicmirror@2.1.3 start /home/pi/MagicMirror
    bash: magicmirror@2.1.3: command not found
    pi@raspberrypi:~ $ cd MagicMirror/config
    pi@raspberrypi:~/MagicMirror/config $ cp config.js.sample config.js
    pi@raspberrypi:~/MagicMirror/config $ cd $HOME/MagicMirror
    pi@raspberrypi:~/MagicMirror $ npm start

    magicmirror@2.1.3 start /home/pi/MagicMirror
    sh run-start.sh

    run-start.sh: 4: run-start.sh: electron: not found
    npm ERR! file sh
    npm ERR! code ELIFECYCLE
    npm ERR! errno ENOENT
    npm ERR! syscall spawn
    npm ERR! magicmirror@2.1.3 start: sh run-start.sh
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the magicmirror@2.1.3 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/2018-01-01T17_47_18_127Z-debug.log
    pi@raspberrypi:~/MagicMirror $ cd ~
    pi@raspberrypi:~ $ npm install electron@1.4.15

    electron@1.4.15 postinstall /home/pi/node_modules/electron
    node install.js

    npm WARN saveError ENOENT: no such file or directory, open ‘/home/pi/package.json’
    npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
    npm WARN pi No description
    npm WARN pi No repository field.
    npm WARN pi No README data
    npm WARN pi No license field.

    • electron@1.4.15
      updated 1 package in 42.487s
      pi@raspberrypi:~ $
    S 1 Reply Last reply Jan 1, 2018, 5:59 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @Esinem
      last edited by Jan 1, 2018, 5:59 PM

      @Esinem you installed it in /home/pi instead of /home/pi/MagicMirror

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

      E 1 Reply Last reply Jan 1, 2018, 6:45 PM Reply Quote 0
      • E Offline
        Esinem @strawberry 3.141
        last edited by Jan 1, 2018, 6:45 PM

        @strawberry-3.141 Thanks. Isn’t that what I was told to do or am I completely misunderstanding things?

        First, go to your home directory: cd ~
        Then install electron: npm install electron@1.4.15

        I think I need to study some very basic tutorials before I even try to install stuff!

        S 1 Reply Last reply Jan 1, 2018, 6:49 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @Esinem
          last edited by Jan 1, 2018, 6:49 PM

          @Esinem its a dependency of magicmirror so it should be installed in the magicmirror directory or globally. Try cd ~/MagicMirror and then the install command again

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

          1 Reply Last reply Reply Quote 1
          • E Offline
            Esinem
            last edited by Esinem Jan 2, 2018, 6:54 AM Jan 1, 2018, 7:26 PM

            Aha! Many thanks. We seem to be getting somewhere now but not out of the woods yet. MM loads, which is a result, and I get a black screen with a little drop-down with options like full screen, properties, session info but no data displayed. Something flashed up fast as it loaded which I think indicated it couldn’t find something. Helper module? I’m not sure it’s relevant as I see some modules don’t have helper files

            I had errors relating to electron@1.17.10 so tried installing that but no change.

            Here’s my screen: https://photos.app.goo.gl/4Qbew2OasrjvqhWH2 Doh! Just figured out the drop down is to do with VNC not MM.

            I ran dev and I can see the line with config.js is highlighted. It tested without syntax errors. I appreciate sample stuff needs localising but should the clone of the sample show something or do I need to make any changes to display anything?

            E 1 Reply Last reply Jan 2, 2018, 7:08 AM Reply Quote 0
            • E Offline
              Esinem @Esinem
              last edited by Esinem Jan 2, 2018, 7:08 AM Jan 2, 2018, 7:08 AM

              Hurrah!! I found a post dated 3 days ago by Lange which solved it:

              npm install --unsafe-perm

              Thanks for your input.

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