Read the statement by Michael Teeuw here.
Default Weather module still not displaying
-
@Blackeye hm. 1st time I’ve seen his tools fail…
@bugsounet any guidance
-
@sdetweil yes
epoll/20.0.1
means it uses electron v20.0.1
for MagicMirror instead of v19.x that why it crash.I’ll leave it up to you to explain it :)
-
@Blackeye ok, heres a way around the problem
fix MM install to have one new tool
cd ~/MagicMirror npm install electron-rebuild
fix MMM-PIR-Sensor
cd ~/MagicMirror/modules/MMM-PIR-Sensor nano package.json
scroll down to
"scripts": { "postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron" },
change the postinstall line so it looks like this
"scripts": { "postinstall": "~/MagicMirror/node_modules/.bin/electron-rebuild -e ../../node_modules/electron" },
ctrl-o to save the updated package.json
ctrl-x to exit the editorthen
npm install
should work correctly now
I just tested this on my MM 2.20 version, on both my linux machine and my pi4 with bullseye
-
@sdetweil said in Default Weather module still not displaying:
~/MagicMirror/node_modules/.bin/electron-rebuild -e …/…/node_modules/electron
Yes! It installed correctly this time, so that change in the path did the trick. I did get some warnings however:
npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain cir cumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
So it is not quite a perfect solution, but it works!
Many thanks for the suggestions and the solution! -
@Blackeye ignore the warnings, nothing we can do about them.
the ‘problem’ here is that the compiler needs to know what version of electron to build for, but can’t figure it out.
using electron-rebuild from the mm libs solves that