Read the statement by Michael Teeuw here.
YAPi0 Installer Stretch Lite
-
@bdream ok, a few things…
- i need to fix the words at the end of install, cause if you said yes to pm2, then don’t do npm start
- then u went and did a manual add of another thing for pm2…
so,
pm2 stop mm pm2 delete mm
then
pm2 stop MagicMirror
then lets try manually
cd ~/MagicMirror npm start
you should see the messages from the mirror running
please advise
-
Thias is you have to work on:
@sdetweil said in YAPi0 Installer Stretch Lite:i need to fix the words at the end of install, cause if you said yes to pm2, then don’t do npm start
I do
pi@RasPiZeroW:~ $ pm2 stop mm [PM2][ERROR] Process mm not found
not necasarry
pm2 delete mm
pi@RasPiZeroW:~ $ pm2 stop MagicMirror [PM2] Applying action stopProcessId on app [MagicMirror](ids: 0) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬──────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 223 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴──────────┴──────────┴──────────┘
pi@RasPiZeroW:~/MagicMirror $ npm start > magicmirror@2.9.0 start /home/pi/MagicMirror > sh run-start.sh
nothing happen
-
@bdream weird… now have same problem on two systems…
try this
cd ~/MagicMirror node serveronly
the connection url will be shown
then connect to that url from a browser on another system
-
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. -