Read the statement by Michael Teeuw here.
MMM-Navigate cannot be installed
-
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
-
@Klaleu said in MMM-Navigate cannot be installed:
and sent the results to you.
where? I am not the module author. I don’t see a text message here from you
and I didn’t give you my emailedit: sorry, I found it, burried in other messages,
very weird… SO, try this
cd ~/MagicMirror npm uninstall @electron/rebuild
then , to see if this is fixed by having the postinstall script reinstall it…
cd modules/MMM-Navigate ./postinstall
this approach was copied from me, so I am confused why it is failing
-
Dear Sam,
I ran the following commands:cd ~/MagicMirror
npm uninstall @electron/rebuildThis was the result:
klaus@raspberrypi:~ $ cd ~/MagicMirror
klaus@raspberrypi:~/MagicMirror $ npm uninstall @electron/rebuild
up to date in 19s
216 packages are looking for funding
runnpm fund
for details
klaus@raspberrypi:~/MagicMirror $ npm fund
magicmirror@2.27.0
├── https://patreon.com/biodiscus
│ └── ansis@2.3.0
├─┬ https://opencollective.com/eslint
│ │ └── eslint@8.57.0, @eslint/eslintrc@2.1.4, eslint-scope@7.2.2, eslint-visito r-keys@3.4.3, espree@9.6.1
│ ├── https://github.com/sponsors/nzakas
│ │ └── @humanwhocodes/module-importer@1.0.1
│ ├── https://github.com/sponsors/epoberezkin
│ │ └── ajv@6.12.6, ajv@8.12.0
│ └── https://github.com/sponsors/feross
│ └── run-parallel@1.2.0, queue-microtask@1.2.3, buffer@5.7.1, base64-js@1.5 .1, ieee754@1.2.1, safe-buffer@5.2.1, run-series@1.1.9
├── https://www.buymeacoffee.com/systeminfo
│ └── systeminformation@5.22.7
├─┬ https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1
│ │ └── eslint-plugin-unicorn@51.0.1
│ ├── https://github.com/sponsors/sibiraj-s
│ │ └── ci-info@4.0.0, ci-info@3.9.0
│ └─┬ https://opencollective.com/core-js
│ │ └── core-js-compat@3.37.0
│ └── https://opencollective.com/browserslist
│ └── browserslist@4.23.0, caniuse-lite@1.0.30001612, update-browserslist- db@1.0.13
├── https://github.com/sponsors/typicode
│ └── husky@9.0.11
├─┬ https://opencollective.com/lint-staged
│ │ └── lint-staged@15.2.2
│ ├── https://github.com/chalk/chalk?sponsor=1
│ │ └── chalk@5.3.0, chalk@4.1.2
│ ├─┬ https://github.com/sindresorhus/execa?sponsor=1
│ │ │ └── execa@8.0.1, execa@5.1.1
│ │ └── https://github.com/sponsors/isaacs
│ │ └── signal-exit@4.1.0, glob@8.1.0, rimraf@3.0.2
│ └── https://github.com/chalk/wrap-ansi?sponsor=1
│ └── wrap-ansi@9.0.0, wrap-ansi@7.0.0
├── https://github.com/prettier/prettier?sponsor=1
│ └── prettier@3.2.5
├── https://opencollective.com/sinon
│ └── sinon@17.0.1
├─┬ https://opencollective.com/stylelint
│ │ └── stylelint@16.4.0
│ ├── https://github.com/sponsors/csstools
│ │ └── @csstools/css-parser-algorithms@2.6.1, @csstools/css-tokenizer@2.2.4, @csstools/media-query-list-parser@2.1.9, @csstools/selector-specificity@3.0.3
│ ├── https://github.com/sponsors/wooorm
│ │ └── @dual-bundle/import-meta-resolve@4.0.0, mathml-tag-names@2.1.3
│ ├── https://github.com/sponsors/d-fischer
│ │ └── cosmiconfig@9.0.0
│ └─┬ https://opencollective.com/postcss/
│ │ └── postcss@8.4.38, postcss-safe-parser@7.0.0
│ └── https://github.com/sponsors/ai
│ └── nanoid@3.3.7
├── https://github.com/sponsors/malept
│ └── @malept/cross-spawn-promise@2.0.0
├─┬ https://github.com/sindresorhus/got?sponsor=1
│ │ └── got@11.8.6
│ └── https://github.com/sindresorhus/is?sponsor=1
│ └── @sindresorhus/is@4.6.0
├── https://github.com/sponsors/ljharb
│ └── string.prototype.matchall@4.0.11, call-bind@1.0.7, function-bind@1.1.2, define-data-property@1.1.4, has-property-descriptors@1.0.2, define-properties@1. 2.1, es-abstract@1.23.3, array-buffer-byte-length@1.0.1, arraybuffer.prototype.s lice@1.0.3, available-typed-arrays@1.0.7, data-view-buffer@1.0.1, data-view-byte -length@1.0.1, data-view-byte-offset@1.0.0, es-to-primitive@1.2.1, is-date-objec t@1.0.5, is-symbol@1.0.4, function.prototype.name@1.1.6, functions-have-names@1. 2.3, get-symbol-description@1.0.2, globalthis@1.0.3, has-proto@1.0.3, is-array-b uffer@3.0.4, is-callable@1.2.7, is-data-view@1.0.1, is-negative-zero@2.0.3, is-r egex@1.1.4, is-shared-array-buffer@1.0.3, is-string@1.0.7, is-typed-array@1.1.13 , is-weakref@1.0.2, object-inspect@1.13.1, object.assign@4.1.5, safe-array-conca t@1.1.2, safe-regex-test@1.0.3, string.prototype.trim@1.2.9, string.prototype.tr imend@1.0.8, string.prototype.trimstart@1.0.8, typed-array-byte-length@1.0.1, ty ped-array-byte-offset@1.0.2, typed-array-length@1.0.6, unbox-primitive@1.0.2, ha s-bigints@1.0.2, which-boxed-primitive@1.0.2, is-bigint@1.0.4, is-boolean-object @1.1.2, is-number-object@1.0.7, which-typed-array@1.1.15, has-tostringtag@1.0.2, get-intrinsic@1.2.4, gopd@1.0.1, has-symbols@1.0.3, regexp.prototype.flags@1.5. 2, side-channel@1.0.6, minimist@1.2.8, qs@6.11.0, resolve@1.22.8, is-core-module @2.13.1, supports-preserve-symlinks-flag@1.0.0, array-includes@3.1.8, array.prot otype.findlastindex@1.2.5, array.prototype.flat@1.3.2, array.prototype.flatmap@1 .3.2, object.fromentries@2.0.8, object.values@1.2.0
├─┬ https://ko-fi.com/killymxi
│ │ └── @selderee/plugin-htmlparser2@0.11.0, selderee@0.11.0, parseley@0.12.1, l eac@0.6.0, peberminta@0.9.0
│ └─┬ https://github.com/fb55/domhandler?sponsor=1
│ │ └── domhandler@5.0.3
│ └── https://github.com/sponsors/fb55
│ └── domelementtype@2.3.0
├─┬ https://github.com/cheeriojs/dom-serializer?sponsor=1
│ │ └── dom-serializer@2.0.0
│ └── https://github.com/fb55/entities?sponsor=1
│ └── entities@4.5.0
├─┬ https://github.com/fb55/htmlparser2?sponsor=1
│ │ └── htmlparser2@8.0.2
│ └── https://github.com/fb55/domutils?sponsor=1
│ └── domutils@3.1.0
├── https://github.com/sponsors/broofa
│ └── uuid@9.0.1
├── https://github.com/sponsors/RubenVerborgh
│ └── follow-redirects@1.15.6
├─┬ https://paulmillr.com/funding/
│ │ └── chokidar@3.6.0
│ └── https://github.com/sponsors/jonschlinkert
│ └── picomatch@2.3.1, picomatch@4.0.2
├── https://opencollective.com/typescript-eslint
│ └── @typescript-eslint/utils@5.62.0, @typescript-eslint/scope-manager@5.62.0 , @typescript-eslint/visitor-keys@5.62.0, @typescript-eslint/types@5.62.0, @type script-eslint/typescript-estree@5.62.0
├── https://github.com/sponsors/ota-meshi
│ └── jsonc-eslint-parser@2.4.0
├── https://github.com/fisker/git-hooks-list?sponsor=1
│ └── git-hooks-list@1.0.3
├── https://opencollective.com/babel
│ └── @babel/core@7.24.4
├── https://github.com/chalk/supports-color?sponsor=1
│ └── supports-color@8.1.1
├── https://github.com/sponsors/dubzzz
│ └── pure-rand@6.1.0
├── https://github.com/sindresorhus/emittery?sponsor=1
│ └── emittery@0.13.1
└── https://github.com/inikulin/parse5?sponsor=1
└── parse5@7.1.2After that I executed these commands:
cd modules/MMM-Navigate
./postinstallThis was the result:
klaus@raspberrypi:~/MagicMirror $ cd modules/MMM-Navigate
klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $ ./postinstall
./postinstall: line 8: …/…/node_modules/.bin/electron-rebuild: Permission denied
klaus@raspberrypi:~/MagicMirror/modules/MMM-Navigate $and and postinstall is not carried out.
I hope you can interpret the results.
Klaus
-
@Klaleu no idea.
never run npm audit or npm fund -
Ok.
What would you do now if you were me? I only see one option: reinstalling the basic configuration of the Magic Mirror and then installing MMM-Navigate as the first module. Maybe a module I’ve already installed is causing access to be denied. What do you think?First of all, thank you very much for taking the time to help me.
Klaus
-
@Klaleu let’s try this
cd ~/MagicMirror rm -rf node_modules npm run install-mm
then
cd modules/MMM-Navigate ./postinstall
then
cd ~/MagicMirror npm start
-
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 sorry, I forgot to tell you to stop MagicMirror under pm2
but as the postinstall ran
dopm2 restart all