Read the statement by Michael Teeuw here.
Electron Install Error - Electron not found
-
@CLLA1972
show output of node -vrun my upgrade script with force instead of apply (as u are on the latest release)
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
-
@CLLA1972 ok, I don’t get what is going on, but
cd ~/MagicMirror rm -rf node_modules/env-paths npm install electron@19.0.15
-
@sdetweil Hi again. First of all, thanks for the great help. I am really in deep water here and I really do not want to reboot the whole PI and start from scratch. Here the result from the latest command and the log file. Again THANKS !! [2022-10-17T20_15_34_187Z-debug-0.log](Invalid file type. Allowed types are: .jpg, .jpeg, .png, .gif, .png, .jpg, .jpeg, .gif)
-
@CLLA1972 574 timing build:link:node_modules/read-pkg/node_modules/semver Completed in 65ms
575 timing build:link Completed in 83ms
576 info run playwright@1.26.1 install node_modules/playwright node install.js
577 info run playwright@1.26.1 install { code: 1, signal: null }
578 timing reify:rollback:createSparse Completed in 3063ms
579 timing reify:rollback:retireShallow Completed in 5ms
580 timing command:install Completed in 329571ms
581 verbose stack Error: command failed
581 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
581 verbose stack at ChildProcess.emit (node:events:527:28)
581 verbose stack at maybeClose (node:internal/child_process:1092:16)
581 verbose stack at Socket. (node:internal/child_process:451:11)
581 verbose stack at Socket.emit (node:events:527:28)
581 verbose stack at Pipe. (node:net:709:12)
582 verbose pkgid playwright@1.26.1
583 verbose cwd /home/pi/MagicMirror
584 verbose Linux 5.15.32-v7+
585 verbose node v16.16.0
586 verbose npm v8.11.0
587 error code 1
588 error path /home/pi/MagicMirror/node_modules/playwright
589 error command failed
590 error command sh -c node install.js
591 error BEWARE: your OS is not officially supported by Playwright; downloading fallback build.
591 error Downloading Chromium 106.0.5249.30 (playwright build v1024)…
591 error | | 0% of 135.1 Mb
591 error Downloading Chromium 106.0.5249.30 (playwright build v1024)…
591 error | | 0% of 135.1 Mb
591 error Downloading Chromium 106.0.5249.30 (playwright build v1024)…
592 error /home/pi/MagicMirror/node_modules/playwright-core/lib/server/registry/index.js:709
592 error throw new Error(Failed to download ${title}, caused by\n${e.stack}
);
592 error ^
592 error
592 error Error: Failed to download Chromium 106.0.5249.30 (playwright build v1024), caused by
592 error Error: getaddrinfo EAI_AGAIN playwright-verizon.azureedge.net
592 error at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
592 error at /home/pi/MagicMirror/node_modules/playwright-core/lib/server/registry/index.js:709:13
592 error at async Registry._downloadExecutable (/home/pi/MagicMirror/node_modules/playwright-core/lib/server/registry/index.js:708:5)
592 error at async Registry.install (/home/pi/MagicMirror/node_modules/playwright-core/lib/server/registry/index.js:672:9)
592 error at async installBrowsersForNpmInstall (/home/pi/MagicMirror/node_modules/playwright-core/lib/server/registry/index.js:876:3)
593 verbose exit 1
594 timing npm Completed in 330071ms
595 verbose unfinished npm timer reify 1666037734674
596 verbose unfinished npm timer reify:build 1666037983317
597 verbose unfinished npm timer build 1666037983330
598 verbose unfinished npm timer build:deps 1666037983332
599 verbose unfinished npm timer build:run:install 1666037983509
600 verbose unfinished npm timer build:run:install:node_modules/playwright 1666037983511
601 verbose code 1
602 error A complete log of this run can be found in:
602 error /home/pi/.npm/_logs/2022-10-17T20_15_34_187Z-debug-0.log -
repeat the last message instructions but change the npm install to
npm install electron@19.0.15 --omit=dev
-
there is a typo in
rm -rf nodel_modules/env-paths
… -
@karsten13 dang phones
-
@sdetweil Did now the commande without the Typo :flushed_face: and god this one (similar to a previous one) . I am getting close to the solution? :-)
-
@CLLA1972 I don’t know
make a backup
see my https://github.com/sdetweil/MagicMirror-backup-restore
then rename the MagicMirror folder out of the way, and run my install script. see if we can get running
see
https://github.com/sdetweil/MagicMirror_scriptsif so, then run the restore to put back all the modules and config in the new mm folder created by install
-
@sdetweil Thanks! Great! That got me back on track again !!! THANKS !!! :clapping_hands_medium-light_skin_tone: :folded_hands: