Read the statement by Michael Teeuw here.
MMM-ImagesPhotos issue
-
-
This might be over my head…
pi@raspberrypi:~/MagicMirror/modules/MMM-ImagesPhotos $ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: magicmirror-images-photos@0.1.1
npm ERR! Found: stylelint@14.16.1
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@“14.x” from grunt-stylelint@0.18.0
npm ERR! node_modules/grunt-stylelint
npm ERR! dev grunt-stylelint@“latest” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev stylelint-config-standard@“latest” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: stylelint@15.7.0
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@“^15.5.0” from stylelint-config-standard@33.0.0
npm ERR! node_modules/stylelint-config-standard
npm ERR! dev stylelint-config-standard@“latest” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/pi/.npm/eresolve-report.txt for a full report.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-06-13T18_03_53_057Z-debug-0.log -
@Nneuland ok, fun stuff…
the module is so old that the development dependencies no longer exist…
so
edit the package.json
and change this
"devDependencies": {
to this.
"devDependencies1": {
the rerun npm install
another stupid thing, npm gives you the option to NOT install the dev stuff. --omit=dev, BUT it still checks them and fails if they don’t work…
so, we have to force them to not exist…
-
@sdetweil
thanks Sam. after adjusting the devDependencies in package.json then running npm install seemed to correct the install.I have auto start mirror enabled when making adjustments to config file. However after adding the config info for this module, the mirror wont start. maybe too old of a module…any suggestions on a better image viewer module?
-
@Nneuland did u fix the missing library problem??? which is why MM doesn’t start???
-
i have not yet. I’ll need to research how to do that properly…
-
@Nneuland see the link I posted on what to do. no research needed
https://forum.magicmirror.builders/topic/17845/mmm-imagesphotos-issue/2?_=1686706297079 -
Thank you Sam!!
-
@Nneuland are you back up and running?
-
@sdetweil
I’m gonna give it a go later tonight