Open nzgrover opened 3 years ago
I fixed this for my installation by executing the following commands:
pi@raspberrypi:~/MagicMirror/modules/MMM-BackgroundSlideshow $ npm uninstall sharp
npm WARN mmm-backgroundslideshow@1.0.0 No repository field.
removed 68 packages and audited 2 packages in 2.719s
found 0 vulnerabilities
pi@raspberrypi:~/MagicMirror/modules/MMM-BackgroundSlideshow $ npm install --arm-version 7 sharp
> sharp@0.28.3 install /home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-armv7.tar.br
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=arm libc= platform=linux)
make: Entering directory '/home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/node_modules/sharp/build'
CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
AR(target) Release/obj.target/../node-addon-api/nothing.a
COPY Release/nothing.a
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
CXX(target) Release/obj.target/sharp/src/metadata.o
CXX(target) Release/obj.target/sharp/src/stats.o
CXX(target) Release/obj.target/sharp/src/operations.o
CXX(target) Release/obj.target/sharp/src/pipeline.o
CXX(target) Release/obj.target/sharp/src/utilities.o
CXX(target) Release/obj.target/sharp/src/sharp.o
SOLINK_MODULE(target) Release/obj.target/sharp.node
COPY Release/sharp.node
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/node_modules/sharp/build'
npm WARN mmm-backgroundslideshow@1.0.0 No repository field.
+ sharp@0.28.3
removed 1 package, updated 1 package and audited 70 packages in 78.51s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
pi@raspberrypi:~/MagicMirror/modules/MMM-BackgroundSlideshow $ cd ..
pi@raspberrypi:~/MagicMirror/modules $ cd ..
pi@raspberrypi:~/MagicMirror $ npm start
That's great.
@nzgrover
I ran npm uninstall sharp
And then npm install --arm-version 7 sharp
Here's what I got
> sharp@0.28.3 install /home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-armvtrue.tar.br
sharp: Installation error: Prebuilt libvips 8.10.6 binaries are not yet available for linux-armvtrue
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm WARN mmm-backgroundslideshow@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.28.3 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.28.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-06-10T18_59_26_177Z-debug.log
What do I do next?
@nzgrover I ran
npm uninstall sharp
And then
npm install --arm-version 7 sharp
Here's what I got
> sharp@0.28.3 install /home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/node_modules/sharp > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-armvtrue.tar.br sharp: Installation error: Prebuilt libvips 8.10.6 binaries are not yet available for linux-armvtrue sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm WARN mmm-backgroundslideshow@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.28.3 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.28.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2021-06-10T18_59_26_177Z-debug.log
What do I do next?
same issue here
Running 'npm install' in the ~/MagicMirror/modules/MMM-BackgroundSlideshow directory includes the following output:
Starting MM gives a blank black screen with the following log output:
FYI