Read the statement by Michael Teeuw here.
Permission denied after updating node.js and electron
-
Hi guys,
after 1.5 years I thought that it would be time to update my Magic Mirror to version 2.18.0, including node.js and electron.
But now when I want to start it, I face the following issue:pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.18.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
sh: 1: ./node_modules/.bin/electron: Permission deniedI also used Sam’s scripts to update: [https://github.com/sdetweil/MagicMirror_scripts]…but it did not work either.
Even changing the owner and reinstalling electron did not work:
pi@raspberrypi:~ $ sudo chown -R pi MagicMirror
pi@raspberrypi:~ $ npm install electron --unsafe-perm=trueHas anybody further ideas how to make it work again? Thanks so much!
@ I have a Raspberry Pi 3 Model B
-
@SwissChemist this sounds like the used up sd card.
the technology is write once. when the bits are all consumed, the file system does not know, and the result is crazy results.
sd card is great for low write devices. camera and music player. bad for operating system that uses paging all the time, writing to logs
-
@sdetweil Thanks for the hint!
I tried to use the same backup on a different SD card, showed the same issue.
Maybe I need to set it up from scratch on a different card… -
@SwissChemist use my backup tool.
https://github.com/sdetweil/MagicMirror-backup-restoreis saves config.js, custom.css and the GitHub urls of the add on modules
then restore adds it all back after mm install
download and run the backup script.
save the three files
then copy back after mm install
then run restore -
@sdetweil Hi Sam,
thanks very much for your great scripts. They really work like charm!Basic installation of the MagicMirror really worked without any issue using your scripts.
I am just fighting with some modules, which are obviously not up to date, but that’s a different story.
At least I found the root cause of an issue with MMM_systemtemperature and I hope that I could help some other beginners who struggled with that module and did not get support in corresponding forum up to now…or just misunderstood the instructions in the forum.I want to thank you so much for the great work you are doing for the MM community!