@andyc7687
so since yesterday i installed many times from Scratch but without success……
With your script i ran into Troubles with a lot of Errors…
missing dependencies….
so i suggest to do more steps after “sudo apt INSTALL --fix-missing” -> “apt UPGRADE --fix-missing” does not work…
sudo dpkg –configure -a. and.
sudo apt install -f.
at npm install a lot of Warnings e.g.
npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
added 921 packages from 1366 contributors and audited 2466 packages in 859.404s
found 8 vulnerabilities (7 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Errors while installing dependencies! (source command: npmc@latest install)
+ stylelint@9.9.0
added 156 packages from 107 contributors, removed 32 packages, updated 99 packages, moved 6 packages and audited 4452 packages in 370.707s
found 4 vulnerabilities (3 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Errors while installing dependencies! (source command: pm install stylelint@latest)
pi@magicpi:~ $ run `npm audit fix` to fix them, or `npm audit` for details
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-01-09T07_05_26_138Z-debug.log
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-01-09T07_05_35_497Z-debug.log
-bash: run: Kommando nicht gefunden.
pi@magicpi:~ $ Errors while installing dependencies! (source command: pm install stylelint@latest)
-bash: Syntaxfehler beim unerwarteten Wort `('
i could fix this with
"npm audit fix" or "npm audit fix --force" in directory MagicMirror
and then i figured out autostart with PM2 as described in MM-Wiki but…
it won’t start …
as done in the guide i created a mm.sh script und configured this for autostart with pm2
at next start Nothing happens to start MagicMirror localy
a “pm2 logs mm”
Shows a loop of “sh run-start.sh”
|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror
0|mm | > sh run-start.sh
0|mm |
0|mm |
0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror
0|mm | > sh run-start.sh
0|mm |
0|mm |
0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror
0|mm | > sh run-start.sh
0|mm |
0|mm |
0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror
0|mm | > sh run-start.sh
a cat to run-start.sh Shows
pi@magicpi:~/MagicMirror $ cat run-start.sh
if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
export DISPLAY=:0 # Set by default display
fi
electron js/electron.js $1
!!!
but electron.js isn’t installed
trying manually install this with
sudo npm install electron -g
ended again in Error-Messages
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@4.0.1 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@4.0.1 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! /root/.npm/_logs/2019-01-09T09_13_51_893Z-debug.log
so… now i’m giving up for These days….
does anybody know where my Failure is ??
Thank you