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

Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 4 Posters 5.8k Views 4 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.
  • J Offline
    Jakllo
    last edited by Jakllo Aug 31, 2016, 8:15 PM Aug 31, 2016, 8:14 PM

    I did just install MagicMirror with the tutorial in the hardware forum, no errors until the last step to run it.

    pi@magicpi:~/MagicMirror $ npm start

    -> magicmirror@2.0.0 start /home/pi/MagicMirror
    -> electron js/electron.js

    npm ERR! Linux 4.4.19-v7+
    npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
    npm ERR! node v4.0.0
    npm ERR! npm v2.14.2
    npm ERR! code ELIFECYCLE
    npm ERR! magicmirror@2.0.0 start: electron js/electron.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
    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
    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


    pi@magicpi:~/MagicMirror $ nano /home/pi/MagicMirror/npm-debug.log =
    0 info it worked if it ends with ok
    1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
    2 info using npm@2.14.2
    3 info using node@v4.0.0
    4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
    5 info prestart magicmirror@2.0.0
    6 info start magicmirror@2.0.0
    7 verbose unsafe-perm in lifecycle true
    8 info magicmirror@2.0.0 Failed to exec start script
    9 verbose stack Error: magicmirror@2.0.0 start: electron js/electron.js
    9 verbose stack Exit status 1
    9 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
    9 verbose stack at emitTwo (events.js:87:13)
    9 verbose stack at EventEmitter.emit (events.js:172:7)
    9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
    9 verbose stack at emitTwo (events.js:87:13)
    9 verbose stack at ChildProcess.emit (events.js:172:7)
    9 verbose stack at maybeClose (internal/child_process.js:817:16)
    9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
    10 verbose pkgid magicmirror@2.0.0
    11 verbose cwd /home/pi/MagicMirror
    12 error Linux 4.4.19-v7+
    13 error argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
    14 error node v4.0.0
    15 error npm v2.14.2
    16 error code ELIFECYCLE
    17 error magicmirror@2.0.0 start: electron js/electron.js
    17 error Exit status 1
    18 error Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
    18 error This is most likely a problem with the magicmirror package,
    18 error not with npm itself.
    18 error Tell the author that this fails on your system:
    18 error electron js/electron.js
    18 error You can get their info via:
    18 error npm owner ls magicmirror
    18 error There is likely additional logging output above.
    19 verbose exit [ 1, true ]
    ##########

    Raspberry pi3, what is wrong? I know nothing about linux…
    If i use “node serveronly” I can connect to it from the desktop.

    1 Reply Last reply Reply Quote 0
    • C Offline
      cowboysdude Module Developer
      last edited by cowboysdude Sep 1, 2016, 2:17 AM Sep 1, 2016, 2:17 AM

      “npm install electron” from a terminal window without quotes…

      1 Reply Last reply Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by Sep 1, 2016, 9:28 AM

        that must be a pretty old turorial when your running node on version 4

        i would recommend to take this tutorial https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

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

        J 1 Reply Last reply Sep 1, 2016, 4:50 PM Reply Quote 1
        • C Offline
          cowboysdude Module Developer
          last edited by Sep 1, 2016, 4:22 PM

          Listen to Strawberry, he knows. I didn’t realize it was old. His answer is much better

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jakllo @strawberry 3.141
            last edited by Jakllo Sep 1, 2016, 4:50 PM Sep 1, 2016, 4:50 PM

            @strawberry-3.141 said in Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.:

            that must be a pretty old turorial when your running node on version 4

            i would recommend to take this tutorial https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

            I did follow that guide at first, same error. After some google someone said to install that specific version, still same error. Now I don’t know how to update it :)

            @cowboysdude said in Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.:

            “npm install electron” from a terminal window without quotes…

            Still same error.
            pi@magicpi:~/MagicMirror $ sudo npm install electron
            /
            -> electron@1.3.4 postinstall /home/pi/MagicMirror/node_modules/electron
            -> node install.js

            Downloading electron-v1.3.4-linux-arm.zip
            [============================================>] 100.0% of 37.04 MB (1.48 MB/s)
            electron@1.3.4 node_modules/electron
            pi@magicpi:~/MagicMirror $ npm start

            -> magicmirror@2.0.0 start /home/pi/MagicMirror
            -> electron js/electron.js

            npm ERR! Linux 4.4.19-v7+
            npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
            npm ERR! node v4.0.0
            npm ERR! npm v2.14.2
            npm ERR! code ELIFECYCLE
            npm ERR! magicmirror@2.0.0 start: electron js/electron.js
            npm ERR! Exit status 1
            npm ERR!
            npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
            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
            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

            …

            GNU nano 2.2.6 File: /home/pi/MagicMirror/npm-debug.log

            0 info it worked if it ends with ok
            1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
            2 info using npm@2.14.2
            3 info using node@v4.0.0
            4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
            5 info prestart magicmirror@2.0.0
            6 info start magicmirror@2.0.0
            7 verbose unsafe-perm in lifecycle true
            8 info magicmirror@2.0.0 Failed to exec start script
            9 verbose stack Error: magicmirror@2.0.0 start: electron js/electron.js
            9 verbose stack Exit status 1
            9 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecy$
            9 verbose stack at emitTwo (events.js:87:13)
            9 verbose stack at EventEmitter.emit (events.js:172:7)
            9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.$
            9 verbose stack at emitTwo (events.js:87:13)
            9 verbose stack at ChildProcess.emit (events.js:172:7)
            9 verbose stack at maybeClose (internal/child_process.js:817:16)
            9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
            10 verbose pkgid magicmirror@2.0.0
            11 verbose cwd /home/pi/MagicMirror
            12 error Linux 4.4.19-v7+
            13 error argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
            14 error node v4.0.0
            15 error npm v2.14.2
            16 error code ELIFECYCLE
            17 error magicmirror@2.0.0 start: electron js/electron.js
            17 error Exit status 1
            18 error Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
            18 error This is most likely a problem with the magicmirror package,
            18 error not with npm itself.
            18 error Tell the author that this fails on your system:
            18 error electron js/electron.js
            18 error You can get their info via:
            18 error npm owner ls magicmirror
            18 error There is likely additional logging output above.
            19 verbose exit [ 1, true ]

            A 1 Reply Last reply Sep 2, 2016, 10:00 PM Reply Quote 0
            • C Offline
              cowboysdude Module Developer
              last edited by Sep 1, 2016, 6:44 PM

              Well my first time I ended up going to the magic mirror dir in terminal and installed node.js and elec myself. Then it worked. Look up how to install node and elec. they will give the commands to do it. That’s how I did it. For some reason when I had to redo everything I downloaded magic mirror and installed it directly from my sd card and it went without issue

              1 Reply Last reply Reply Quote 0
              • A Offline
                amanzimdwini @Jakllo
                last edited by Sep 2, 2016, 10:00 PM

                @Jakllo
                I initially had that problem too - you need to be logged in as PI - not root.
                I’d suggest starting all over: it really wont take that long. Follow the
                tutorial @strawberry-3-141 mentioned (https://forum.magicmirror.builders/topic/236/complete-setup-tutorial) to the letter. It was written by @KirAsh4 & made all of my problem go away. I have now done it 4 times, getting it done in less than an hour from unpacking to having it all run!

                My raspberry all of a sudden even connected via WiFi, and I am expecting my hair to grow back any day now.

                I’m telling you - pure magic, these guys.

                All the best

                C J 2 Replies Last reply Sep 2, 2016, 11:48 PM Reply Quote 2
                • C Offline
                  cowboysdude Module Developer @amanzimdwini
                  last edited by Sep 2, 2016, 11:48 PM

                  @amanzimdwini said in Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.:

                  @Jakllo
                  I initially had that problem too - you need to be logged in as PI - not root.
                  I’d suggest starting all over: it really wont take that long. Follow the
                  tutorial @strawberry-3-141 mentioned (https://forum.magicmirror.builders/topic/236/complete-setup-tutorial) to the letter. It was written by @KirAsh4 & made all of my problem go away. I have now done it 4 times, getting it done in less than an hour from unpacking to having it all run!

                  My raspberry all of a sudden even connected via WiFi, and I am expecting my hair to grow back any day now.

                  I’m telling you - pure magic, these guys.

                  All the best

                  ^ This… yes do that!

                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    Jakllo @amanzimdwini
                    last edited by Jakllo Sep 3, 2016, 10:33 PM Sep 3, 2016, 8:52 PM

                    @amanzimdwini said in Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.:

                    @Jakllo
                    I initially had that problem too - you need to be logged in as PI - not root.
                    I’d suggest starting all over: it really wont take that long. Follow the
                    tutorial @strawberry-3-141 mentioned (https://forum.magicmirror.builders/topic/236/complete-setup-tutorial) to the letter. It was written by @KirAsh4 & made all of my problem go away. I have now done it 4 times, getting it done in less than an hour from unpacking to having it all run!

                    My raspberry all of a sudden even connected via WiFi, and I am expecting my hair to grow back any day now.

                    I’m telling you - pure magic, these guys.

                    All the best

                    Thank you very much, it works now!
                    Before I used Putty after SSH got enabled, logged in with pi/raspberry login.

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