MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Unable to install dependencies

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 3 Posters 1.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      luke1
      last edited by luke1

      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:)

      lavolp3L S 2 Replies Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @luke1
        last edited by

        @luke1 Not ure if it helps but try to update node and npm
        E.g. using the n module

        npm install -g npm@latest
        npm cache clean -f
        npm install -g n
        n stable
        

        You may need to use sudo for all of these operations.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @luke1
          last edited by

          @luke1 I think the npm cache is corrupt do

          cd ~
          sudo rm -rf .npm
          

          then restart the install script. it will installer upgrade node and npm if needed

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • L Offline
            luke1
            last edited by

            @lavolp3 @sdetweil Thanks a lot! it works now :)

            1 Reply Last reply Reply Quote 0

            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
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy