Read the statement by Michael Teeuw here.
Unable to install dependencies
-
Hi, i have a raspberry pi 3 with raspian version 10 “buster”. I repeatedly get the same error when I try to install MM2. I use this script:
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”This is the log:
1443 verbose type system
1444 verbose stack FetchError: Invalid response body while trying to fetch https://registry.npmjs.org/color-convert: Integrity verification failed for sha512-exjiN94u2EORAE/AeYWCUz/D3vWlG2W2nMKEvSyaqbaNAuQ6ApnzNngc/M/M8Yw9WU65bhJDn1dPK/vz0/n2WQ== (/home/pi/.npm/_cacache/content-v2/sha512/7b/18/e237de2ed84391004fc0798582533fc3def5a51b65b69cc284bd2c9aa9b68d02e43a0299f336781cfccfccf18c3d594eb96e12439f574f2bfbf3d3f9f659)
1444 verbose stack at Readable.body.on.err (/usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/body.js:195:14)
1444 verbose stack at Readable.emit (events.js:198:13)
1444 verbose stack at cacache.get.byDigest.then.err (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/cache.js:92:30)
1444 verbose stack at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
1444 verbose stack at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:517:31)
1444 verbose stack at Promise._settlePromise (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:574:18)
1444 verbose stack at Promise._settlePromise0 (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:619:10)
1444 verbose stack at Promise._settlePromises (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:695:18)
1444 verbose stack at _drainQueueStep (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:138:12)
1444 verbose stack at _drainQueue (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:131:9)
1444 verbose stack at Async._drainQueues (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:147:5)
1444 verbose stack at Immediate.Async.drainQueues (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
1444 verbose stack at runCallback (timers.js:705:18)
1444 verbose stack at tryOnImmediate (timers.js:676:5)
1444 verbose stack at processImmediate (timers.js:658:5)
1445 verbose cwd /home/pi/MagicMirror
1446 verbose Linux 5.10.17-v7+
1447 verbose argv “/usr/bin/node” “/usr/bin/npm” “install” “–only=prod”
1448 verbose node v10.24.0
1449 verbose npm v6.14.11
1450 error code EINTEGRITY
1451 error errno EINTEGRITY
1452 error Invalid response body while trying to fetch https://registry.npmjs.org/color-convert: Integrity verification failed for sha512-exjiN94u2EORAE/AeYWCUz/D3vWlG2W2nMKEvSyaqbaNAuQ6ApnzNngc/M/M8Yw9WU65bhJDn1dPK/vz0/n2WQ== (/home/pi/.npm/_cacache/content-v2/sha512/7b/18/e237de2ed84391004fc0798582533fc3def5a51b65b69cc284bd2c9aa9b68d02e43a0299f336781cfccfccf18c3d594eb96e12439f574f2bfbf3d3f9f659)
1453 verbose exit [ 1, true ]Thanks for your help:)
-
@luke1 Not ure if it helps but try to update node and npm
E.g. using the n modulenpm install -g npm@latest npm cache clean -f npm install -g n n stableYou may need to use sudo for all of these operations.
-
@luke1 I think the npm cache is corrupt do
cd ~ sudo rm -rf .npmthen restart the install script. it will installer upgrade node and npm if needed
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login