Read the statement by Michael Teeuw here.
MMM-Navigate cannot be installed
-
I installed MMM-Navigate according to the description on https://github.com/Ax-LED/MMM-Navigate. Unfortunately, there are error messages that, as a “non-programmer”, give me no clues as to how to fix it. Here is the LOG file of the installation:
0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using npm@10.1.0
2 info using node@v20.8.0
3 timing npm:load:whichnode Completed in 9ms
4 timing config:load:defaults Completed in 6ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 10ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/home/klaus/MagicMirror/modules/MMM-Navigate/.npmrc Completed in 0ms
10 timing config:load:project Completed in 16ms
11 timing config:load:file:/home/klaus/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/usr/local/etc/npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 8ms
16 timing config:load Completed in 51ms
17 timing npm:load:configload Completed in 51ms
18 timing config:load:flatten Completed in 15ms
19 timing npm:load:mkdirpcache Completed in 2ms
20 timing npm:load:mkdirplogs Completed in 1ms
21 verbose title npm install
22 verbose argv “install”
23 timing npm:load:setTitle Completed in 2ms
24 timing npm:load:display Completed in 8ms
25 verbose logfile logs-max:10 dir:/home/klaus/.npm/_logs/2024-06-12T12_09_51_699Z-
26 verbose logfile /home/klaus/.npm/_logs/2024-06-12T12_09_51_699Z-debug-0.log
27 timing npm:load:logFile Completed in 40ms
28 timing npm:load:timers Completed in 1ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 201ms
31 timing arborist:ctor Completed in 8ms
32 silly logfile start cleaning logs, removing 2 files
33 timing arborist:ctor Completed in 0ms
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 98ms
36 timing idealTree:userRequests Completed in 2ms
37 silly idealTree buildDeps
38 silly fetch manifest onoff@latest
39 http fetch GET 200 https://registry.npmjs.org/onoff 1321ms (cache revalidated)
40 silly placeDep ROOT onoff@6.0.3 OK for: MagicMirror-Module-Navigate@1.6.0 want: latest
41 silly fetch manifest epoll@^4.0.1
42 silly fetch manifest lodash.debounce@^4.0.8
43 http fetch GET 200 https://registry.npmjs.org/lodash.debounce 247ms (cache revalidated)
44 http fetch GET 200 https://registry.npmjs.org/epoll 1028ms (cache revalidated)
45 timing idealTree:#root Completed in 2418ms
46 silly placeDep ROOT epoll@4.0.2 OK for: onoff@6.0.3 want: ^4.0.1
47 silly fetch manifest bindings@^1.5.0
48 silly fetch manifest nan@^2.17.0
49 silly placeDep ROOT lodash.debounce@4.0.8 OK for: onoff@6.0.3 want: ^4.0.8
50 http fetch GET 200 https://registry.npmjs.org/nan 162ms (cache revalidated)
51 http fetch GET 200 https://registry.npmjs.org/bindings 465ms (cache revalidated)
52 timing idealTree:node_modules/onoff Completed in 496ms
53 silly placeDep ROOT bindings@1.5.0 OK for: epoll@4.0.2 want: ^1.5.0
54 silly fetch manifest file-uri-to-path@1.0.0
55 silly placeDep ROOT nan@2.20.0 OK for: epoll@4.0.2 want: ^2.17.0
56 http fetch GET 200 https://registry.npmjs.org/file-uri-to-path 148ms (cache revalidated)
57 timing idealTree:node_modules/epoll Completed in 168ms
58 silly placeDep ROOT file-uri-to-path@1.0.0 OK for: bindings@1.5.0 want: 1.0.0
59 timing idealTree:node_modules/bindings Completed in 15ms
60 timing idealTree:node_modules/file-uri-to-path Completed in 1ms
61 timing idealTree:node_modules/lodash.debounce Completed in 0ms
62 timing idealTree:node_modules/nan Completed in 0ms
63 timing idealTree:buildDeps Completed in 3103ms
64 timing idealTree:fixDepFlags Completed in 2ms
65 timing idealTree Completed in 3221ms
66 timing reify:loadTrees Completed in 3227ms
67 timing reify:diffTrees Completed in 4ms
68 silly reify moves {}
69 timing reify:retireShallow Completed in 4ms
70 timing reify:createSparse Completed in 9ms
71 timing reify:loadBundles Completed in 0ms
72 silly audit bulk request {
72 silly audit onoff: [ ‘6.0.3’ ],
72 silly audit epoll: [ ‘4.0.2’ ],
72 silly audit ‘lodash.debounce’: [ ‘4.0.8’ ],
72 silly audit bindings: [ ‘1.5.0’ ],
72 silly audit nan: [ ‘2.20.0’ ],
72 silly audit ‘file-uri-to-path’: [ ‘1.0.0’ ]
72 silly audit }
73 timing reifyNode:node_modules/bindings Completed in 278ms
74 timing reifyNode:node_modules/lodash.debounce Completed in 284ms
75 timing reifyNode:node_modules/file-uri-to-path Completed in 299ms
76 timing reifyNode:node_modules/epoll Completed in 384ms
77 timing reifyNode:node_modules/onoff Completed in 397ms
78 timing reifyNode:node_modules/nan Completed in 417ms
79 timing reify:unpack Completed in 419ms
80 timing reify:unretire Completed in 0ms
81 timing build:queue Completed in 5ms
82 info run epoll@4.0.2 install node_modules/epoll node-gyp rebuild
83 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 572ms
84 timing auditReport:getReport Completed in 584ms
85 silly audit report {}
86 timing auditReport:init Completed in 0ms
87 timing reify:audit Completed in 591ms
88 info run epoll@4.0.2 install { code: 0, signal: null }
89 timing build:run:install:node_modules/epoll Completed in 15212ms
90 timing build:run:install Completed in 15213ms
91 timing build:deps Completed in 15223ms
92 timing build Completed in 15223ms
93 timing reify:build Completed in 15224ms
94 timing reify:trash Completed in 0ms
95 timing reify:save Completed in 34ms
96 timing reify Completed in 19054ms
97 timing command:install Completed in 19108ms
98 verbose stack Error: command failed
98 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
98 verbose stack at ChildProcess.emit (node:events:514:28)
98 verbose stack at maybeClose (node:internal/child_process:1105:16)
98 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
99 verbose pkgid MagicMirror-Module-Navigate@1.6.0
100 verbose cwd /home/klaus/MagicMirror/modules/MMM-Navigate
101 verbose Linux 6.1.21-v8+
102 verbose node v20.8.0
103 verbose npm v10.1.0
104 error code 126
105 error path /home/klaus/MagicMirror/modules/MMM-Navigate
106 error command failed
107 error command sh -c ./postinstall
108 verbose exit 126
109 timing npm Completed in 20828ms
110 verbose code 126
111 error A complete log of this run can be found in: /home/klaus/.npm/_logs/2024-06-12T12_09_51_699Z-debug-0.logAny tips on what I can and must do to ensure an error-free installation would be greatly appreciated.
-
Hello Sam,
Thank you for continuing to try to solve the problem.
I have carried out:cd ~/MagicMirror
rm -rf node_modules
npm run install-mmand after that:
cd modules/MMM-Navigate
./postinstallwithout problems.
Last I did:
cd ~/MagicMirror
npm startThis is the result:
klaus@raspberrypi:~ $ cd ~/MagicMirror
klaus@raspberrypi:~/MagicMirror $ npm startmagicmirror@2.27.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[2024-06-17 11:35:52.232] [LOG] Starting MagicMirror: v2.27.0
[2024-06-17 11:35:52.333] [LOG] Loading config …
[2024-06-17 11:35:52.344] [LOG] config template file not exists, no envsubst
[2024-06-17 11:35:52.354] [LOG] Loading module helpers …
[2024-06-17 11:35:52.360] [LOG] No helper found for module: alert.
[2024-06-17 11:35:53.076] [LOG] Initializing new module helper …
[2024-06-17 11:35:53.078] [LOG] Module helper loaded: updatenotification
[2024-06-17 11:35:53.080] [LOG] No helper found for module: MMM-pages.
[2024-06-17 11:35:53.081] [LOG] No helper found for module: clock.
[2024-06-17 11:35:53.466] [LOG] Initializing new module helper …
[2024-06-17 11:35:53.472] [LOG] Module helper loaded: calendar
[2024-06-17 11:35:54.236] [LOG] Initializing new module helper …
[2024-06-17 11:35:54.241] [LOG] Module helper loaded: MMM-DWD-Pollen
[2024-06-17 11:35:54.242] [LOG] No helper found for module: compliments.
[2024-06-17 11:35:54.243] [LOG] No helper found for module: weather.
[2024-06-17 11:35:54.275] [LOG] Initializing new module helper …
[2024-06-17 11:35:54.275] [LOG] Module helper loaded: MMM-birthdays
[2024-06-17 11:35:54.720] [LOG] Initializing new module helper …
[2024-06-17 11:35:54.723] [LOG] Module helper loaded: MMM-Rest
[2024-06-17 11:35:54.725] [LOG] No helper found for module: MMM-Globe.
[2024-06-17 11:35:54.725] [LOG] No helper found for module: MMM-RAIN-MAP.
[2024-06-17 11:35:54.893] [LOG] Initializing new module helper …
[2024-06-17 11:35:54.893] [LOG] Module helper loaded: newsfeed
[2024-06-17 11:35:54.893] [LOG] All module helpers loaded.
[2024-06-17 11:35:54.909] [LOG] Starting server on port 8080 …
[2024-06-17 11:35:57.767] [ERROR] Whoops! There was an uncaught exception…
[2024-06-17 11:35:57.823] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080
at Server.setupListenHandle [as _listen2] (node:net:1872:16)
at listenInCluster (node:net:1920:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:2069:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) {
code: ‘EADDRINUSE’,
errno: -98,
syscall: ‘listen’,
address: ‘::1’,
port: 8080
}
[2024-06-17 11:35:57.850] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2024-06-17 11:35:57.862] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues
[2024-06-17 11:36:07.657] [INFO] System information:SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.2; raspberry: [object Object]; virtual: false
OS: platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.21-v8+
VERSIONS: electron: 29.3.1; used node: 20.9.0; installed node: 20.8.0; npm: 10.1.0; pm2: 5.3.1
OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
The internet connection was stabile, it can’t be the reason for the problem.
I hope you can interpret the result and have a suggestion on how to proceed.Greetings
Klaus -
@Klaleu said in MMM-Navigate cannot be installed:
error command failed
107 error command sh -c ./postinstallthere is a posting tall script
can you try to run itin the module folder do
./postinstall
if it says commabd not found or permission denied, then do
chmod +x postinstall
and try it again
-
Dear Sam,
Many thanks for the quick response. I tried to implement your suggestions, unfortunately without success. But as a non-programmer, I’m not sure whether I did everything right and whether I understood you correctly. Here is a section of my screen. I hope you recognize my mistake and can help me further:klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $ ./postinstall
./postinstall: line 8: …/…/node_modules/.bin/electron-rebuild: Permission deni ed
klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $ chmod +x postinstall
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-13T09_49_42_926Z-debug-0.log
klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $Klaus
-
@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?