Read the statement by Michael Teeuw here.
MMM-Navigate cannot be installed
-
@Klaleu said in MMM-Navigate cannot be installed:
postinstall: line 8: …/…/node_modules/.bin/electron-rebuild: Permission denied
hm…
have you ever used sudo for any npm command for MagicMirror? please don’t
can you do this and show results
cd ~/MagicMirror ls -laF node_modules/.bin/electron-rebuild
-
Hello Sam,
Thank you for your suggestion to solve the problem. I deleted the old installation of MMM-Navigate by deleting the MMM-Navigate folder in the /MagicMirror/modules/. I then carried out electron-rebuild, unfortunately the following reinstallation of MMM-Navigate resulted in the same errors . Here is a section of my screen.klaus@raspberrypi:~/MagicMirror $ ls -laF node_modules/.bin/electron-rebuild
lrwxrwxrwx 1 klaus klaus 34 Jun 12 11:38 node_modules/.bin/electron-rebuild -> . ./electron-rebuild/lib/src/cli.js
klaus@raspberrypi:~/MagicMirror $ cd ~/MagicMirror/modules/
klaus@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Ax-LED/MMM-Navigate
Cloning into ‘MMM-Navigate’…
remote: Enumerating objects: 122, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 122 (delta 24), reused 32 (delta 17), pack-reused 77
Receiving objects: 100% (122/122), 442.08 KiB | 449.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
klaus@raspberrypi:~/MagicMirror/modules $ cd MMM-Navigate
klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $ npm installMagicMirror-Module-Navigate@1.6.0 postinstall
./postinstall./postinstall: line 8: …/…/node_modules/.bin/electron-rebuild: Permission denied
npm ERR! code 126
npm ERR! path /home/klaus/MagicMirror/modules/MMM-Navigate
npm ERR! command failed
npm ERR! command sh -c ./postinstallnpm ERR! A complete log of this run can be found in: /home/klaus/.npm/_logs/2024-06-13T13_55_36_051Z-debug-0.log
Do you have any suggestions as to what I can try to get an error-free installation?
For information - I use:- Raspberry Pi 4
- Raspbian GNU/Linux Version 11
- Modules: alert, updatenotification, MMM-Pages, clock, calendar, MMM-DWD-Pollen, complements, weather, MMM-birthdays, MMM-Rest, MMM-Globe, MMM-RAIN-MAP, newsfeed
Klaus
-
@Klaleu but the problem is outside the mmm-navigate folder
please provide the information i asked for
-
Hello Sam,
I forgot to answer the question. Your question was: Have you ever used sudo for any npm command for MagicMirror? As far as I can remember, I ran the following commands: and <sudo npm install -g pm2>. If that is the problem, how can I solve it to be able to install MMM-Navigate.
PS I installed over ten modules for my Magic Mirror and none of them had any problems. -
@Klaleu I asked you to do
ls -laF ~/MagicMirror/node_modules/.bin/electron-rebuild
-
Hello Sam,
Yes, I did it. For the result please see the LOG file in my answer of Jun 13, 2024, 4:41 PM.
I hope I followed your instructions correctly.
Thank you for your efforts.Klaus
-
@Klaleu log file where?
-
I mean this excerpt from the LOG_file (see my answer of Jun 13, 2024, 4:41 PM):
…
klaus@raspberrypi:~/MagicMirror $ ls -laF node_modules/.bin/electron-rebuild
lrwxrwxrwx 1 klaus klaus 34 Jun 12 11:38 node_modules/.bin/electron-rebuild -> . ./electron-rebuild/lib/src/cli.js
klaus@raspberrypi:~/MagicMirror $ cd ~/MagicMirror/modules/
klaus@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Ax-LED/MMM-Navigate
Cloning into ‘MMM-Navigate’…
remote: Enumerating objects: 122, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 122 (delta 24), reused 32 (delta 17), pack-reused 77
Receiving objects: 100% (122/122), 442.08 KiB | 449.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
klaus@raspberrypi:~/MagicMirror/modules $ cd MMM-Navigate
klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $ npm installMagicMirror-Module-Navigate@1.6.0 postinstall
./postinstall./postinstall: line 8: …/…/node_modules/.bin/electron-rebuild: Permission denied
npm ERR! code 126
npm ERR! path /home/klaus/MagicMirror/modules/MMM-Navigate
npm ERR! command failed
npm ERR! command sh -c ./postinstall
…You can see I did “electron-rebuild” and after that I tried to install MMM-Navigate without any success.
I you need the hole LOG-File, or is the excerpt sufficient?Greatings Klaus
-
@Klaleu I need you to execute the command I listed, now
and show it’s resultsI need to determine what the permission problem is exactly before I can tell you how to resolve it
-
Hello Sam,
You wrote: " I need you to execute the command I listed, now and show it’s results"
Now I’m a little bit confused. I executed severel commands you asked my for and dokumented the results.
Please write to me exactly what I need to do to provide you with the information to isolate the problem. Unfortunately, I’m just a layman and can’t get any further in this case on my own and need help from experienced programmers.
Thank you.
Klaus