Read the statement by Michael Teeuw here.
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
-
Listen to Strawberry, he knows. I didn’t realize it was old. His answer is much better
-
@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.jsDownloading 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.jsnpm 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 ] -
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
-
@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
-
@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!
-
@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.