@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 ]