Read the statement by Michael Teeuw here.
MMM-Navigate cannot be installed
-
@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 -
-
Dear Sam,
Yes, I have already executed these commands:ls -laF ~/MagicMirror/node_modules/.bin/electron-rebuild
and
cd ~/MagicMirror
ls -laF node_modules/.bin/electron-rebuild-and sent the results to you.
Please tell me what I did wrong so that the results were not meaningful for you.A nice Weekend for you.
Klaus