A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
YAPi0 Installer Stretch Lite
-
@bdream so far so good…
-
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.
-
@bdream still good
-
now the question if I want to use pm2 for autostart MM I will state YES
-
@bdream correct, reply yes or y
-
[PM2][WARN] Application MagicMirror not running, starting... [PM2] App [MagicMirror] launched (1 instances) App name | id | version | node | pid | status | restart | uptime | cpu | mem | user | watching MagicMirror | 0 | 2.8.0 | fork | 4835 | online | 0 | 3s | 0% | 2.5 MB | pi | enabled use 'pm2 show <id|name>' to get more details about an app
I used pm2 show mm and got [PM2][WARN] mm doesn’t exist
-
@bdream said in YAPi0 Installer Stretch Lite:
pm2 show mm
correct,
its called MagicMirror
App name | id | version |
MagicMirror | 0 | 2.8.0 |says its running…
show me pm2 logs
you can also use the id, instead of the name
pm2 start 0,
pm2 stop 0,
pm2 show 0…etc
-
here you are
last 3 rows coming multiple times
-
@bdream ok, there are two logs… error and out…
maybe best to do
cd ~/MagicMirror pm2 stop 0 npm start
-
pi@RasPiZeroW:~ $ cd ~/MagicMirror/ pi@RasPiZeroW:~/MagicMirror $ pm2 stop 0 [PM2] Applying action stopProcessId on app [0](ids: 0) [PM2] [MagicMirror](0) ✓ ┌─────────────┬────┬─────────┬──────┬─────┬─────────┬─────────┬────────┬─────┬────────┬──────┬──────────┐ │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ ├─────────────┼────┼─────────┼──────┼─────┼─────────┼─────────┼────────┼─────┼────────┼──────┼──────────┤ │ MagicMirror │ 0 │ 2.8.0 │ fork │ 0 │ stopped │ 31 │ 0 │ 0% │ 0 B │ pi │ disabled │ └─────────────┴────┴─────────┴──────┴─────┴─────────┴─────────┴────────┴─────┴────────┴──────┴──────────┘ Use `pm2 show <id|name>` to get more details about an app pi@RasPiZeroW:~/MagicMirror $ npm start > magicmirror@2.8.0 start /home/pi/MagicMirror > sh run-start.sh /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! magicmirror@2.8.0 start: `sh run-start.sh` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the magicmirror@2.8.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-09-25T17_26_03_649Z-debug.log pi@RasPiZeroW:~/MagicMirror $