Read the statement by Michael Teeuw here.
YAPi0 Installer Stretch Lite
-
another thing to try is
cd ~/MagicMirror export DISPLAY=:0 node node_modules/.bin/electron
electron should come up on the screen
-
no, it dosn’t
-
@bdream did serveronly mode work?
-
@bdream ok, one more thing to try
cd ~/MagicMirror/node_modules mv electron electron.save cd .. npm install electron@latest
I am running 6.0.12 on one of my systems
then try npm start
-
pi@RasPiZeroW:~/MagicMirror $ npm install electron@latest > electron@6.0.12 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js Downloading tmp-1548-0-electron-v6.0.12-linux-armv6l.zip Error: GET https://github.com/electron/electron/releases/download/v6.0.12/electr on-v6.0.12-linux-armv6l.zip returned 404 /home/pi/MagicMirror/node_modules/electron/install.js:53 throw err ^ Error: Failed to find Electron v6.0.12 for linux-armv6l at https://github.com/el ectron/electron/releases/download/v6.0.12/electron-v6.0.12-linux-armv6l.zip at Request.<anonymous> (/home/pi/MagicMirror/node_modules/nugget/index.js:16 9:61) at Request.emit (events.js:189:13) at Request.onRequestResponse (/home/pi/MagicMirror/node_modules/request/requ est.js:1066:10) at ClientRequest.emit (events.js:189:13) at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21 ) at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17) at TLSSocket.socketOnData (_http_client.js:442:20) at TLSSocket.emit (events.js:189:13) at addChunk (_stream_readable.js:284:12) at readableAddChunk (_stream_readable.js:265:11) npm WARN acorn-jsx@5.1.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is i nstalled. You must install peer dependencies yourself. npm WARN grunt-stylelint@0.11.1 requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron@6.0.12 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@6.0.12 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-10-18T13_30_31_697Z-debug.log
I would like to attach the log, but it’s missing :pouting_face:
pi@RasPiZeroW:~/MagicMirror $ npm start > magicmirror@2.9.0 start /home/pi/MagicMirror > sh run-start.sh run-start.sh: 7: run-start.sh: electron: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! magicmirror@2.9.0 start: `sh run-start.sh` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the magicmirror@2.9.0 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/2019-10-18T14_07_43_211Z-debug.log
-
@sdetweil how interesting.
If I reboot the RPi0 I see MagicMirror booting too. After a while of black screen I get usal Pi Desktop. -
-
pi@RasPiZeroW:~ $ npm install --arch=arm7l electron@latest > electron@6.0.12 postinstall /home/pi/node_modules/electron > node install.js Downloading tmp-2171-0-electron-v6.0.12-linux-arm7l.zip Error: GET https://github.com/electron/electron/releases/download/v6.0.12/electron-v6.0.12-linux-arm7l.zip returned 404 /home/pi/node_modules/electron/install.js:53 throw err ^ Error: Failed to find Electron v6.0.12 for linux-arm7l at https://github.com/electron/electron/releases/download/v6.0.12/electron-v6.0.12-linux-arm7l.zip at Request.<anonymous> (/home/pi/node_modules/nugget/index.js:169:61) at Request.emit (events.js:189:13) at Request.onRequestResponse (/home/pi/node_modules/request/request.js:1066:10) at ClientRequest.emit (events.js:189:13) at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17) at TLSSocket.socketOnData (_http_client.js:442:20) at TLSSocket.emit (events.js:189:13) at addChunk (_stream_readable.js:284:12) at readableAddChunk (_stream_readable.js:265:11) 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. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron@6.0.12 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@6.0.12 postinstall 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/2019-10-18T15_04_49_780Z-debug.log
-
@bdream sorry,. please in the MagicMirror folder
all things MagicMirror should be done from the MagicMirror folder
npm install --arch=armv7l electron@latest
notice the added lowercase V --arch=armV7L (all lowercase)
I get a file download for
https://github.com/electron/electron/releases/download/v6.0.12/electron-v6.0.12-linux-armv7l.zip -
@bdream did you have time to look at this?
also, after loading do
cd ~/MagicMirror/node_modules/electron ldd dist/electron >>~/logfile.txt readelf -A dist/electron >>~/logfile.txt also grep electron /var/log/syslog >>~/logfile and send me ~/logfile.txt thanks