Read the statement by Michael Teeuw here.
Setting up Magic Mirror remotely?
-
@yawns Via VNC, It froze when it did the two warnings. the pi prompt never returned. I just shut it down. Had to leave. Will try again when I have time, next time via the hdmi screen.
-
tried again today with the hdmi screen, it got to where it said something about it was loading a file that had 715 at the end and froze. so restarted removed the folder, and restarted installing remotely. it got to loading depandencies and gave me this :
Installing dependencies …
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm WARN prefer global jsonlint@1.6.2 should be installed with -guws@0.14.5 install /home/pi/MagicMirror/node_modules/uws
node-gyp rebuild > build_log.txt 2>&1 || exit 0
Unable to install dependencies!tried starting npm remotely got this:
pi@raspberrypi:~ $ npm start
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.logtried starting from the hdmi screen same thing.
tried starting from with the magicmirror folder, got this:
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.1.3 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:9
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:570:32)
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.3 start:sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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! sh run-start.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn’t available, 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@raspberrypi:~/MagicMirror $
Can anyone point me in the direction to correct? I have already upgraded Node.js so i know it cant be that.npm-bug.log:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
2 info using npm@3.10.10
3 info using node@v6.11.5
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, ‘sh run-start.sh’ ]
12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
14 verbose stack Error: magicmirror@2.1.3 start:sh run-start.sh
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
[ Read 45 lines ] -
@navyvette87 said in Setting up Magic Mirror remotely?:
tried starting npm remotely got this:
pi@raspberrypi:~ $ npm startYou would need to
cd MagicMirror
to change into your MagicMirror directory first, then runnpm start
-
Went back to the website and read, and found something about npm install, so ran that, it looked like it installed something, then ran npm start again and got:
magicmirror@2.1.3 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:9
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:570:32)
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.3 start:sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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! sh run-start.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn’t available, 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@raspberrypi:~/MagicMirror $npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’, ‘dev’ ]
2 info using npm@3.10.10
3 info using node@v6.11.5
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, 'sh run-start.sh "dev$
12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
14 verbose stack Error: magicmirror@2.1.3 start:sh run-start.sh "dev"
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
[ Read 45 lines ] -
@navyvette87 said in Setting up Magic Mirror remotely?:
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
Terminal is telling what happened and you what to do here.
Go into your MagicMirror folder, then into the node_modules folder, then DELETE the electron folder.
Then run
npm install
again in the MagicMirror directory -
ok read some on the repository, was able to run the serveronly and got this
Magic Mirror2
Please create a config file.
See README for more information.
If you get this message while your config file is already
created, your config file probably contains an error.
Use a JavaScript linter to validate your file.what next?
-
Look at the bottom left of my post. Click on Create a working config
-
I got it to work, but then I went through the pi setup stuff to turn on the screensaver and wifi sleep, now when i tried to reboot, it says
[FAILED] Failed to start Light Display Manager
SSH is enabled and the default password for the ‘pi’ user has not been changed. This is a security risk - please login as the ‘pi’ user and type passwd to set a new password.
pi@raspberrypi: $How do i get it to continue to the desktop screen?
-
I’ve never encountered that before. Maybe, revert the changes you just made, get your mirror running, then try them again, 1 at a time
-
fixed the light display thing by rebooting with hdmi unplugged, then repluging it in, then rebooting, but the ssh message still there