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 Solved Troubleshooting
    4 Posts 2 Posters 5.3k Views 2 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.
    • A Offline
      alenba2
      last edited by

      Every time I try to install the magic mirror by using the command …

      bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
      

      I get thrown with this error after its done cloning Magic Mirror

      Cloning MagicMirror Done!
      Installing dependencies ...
      (node:8859) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
      npm WARN deprecated express-ipfilter@0.3.1: This package is no longer being maintained and contains security vulnerabilities
      npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
      npm ERR! Error: Method Not Allowed
      npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
      npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
      npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
      npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
      npm ERR! If you need help, you may report this *entire* log,
      npm ERR! including the npm and node versions, at:
      npm ERR!     <http://github.com/npm/npm/issues>
      
      npm ERR! System Linux 4.14.79-v7+
      npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
      npm ERR! cwd /home/pi/MagicMirror
      npm ERR! node -v v8.11.1
      npm ERR! npm -v 1.4.21
      npm ERR! code E405
      npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
      |
      > electron-chromedriver@1.7.1 install /home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver
      > node ./download-chromedriver.js
      
      npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
      npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
      npm ERR! 
      npm ERR! Additional logging details can be found in:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      npm ERR! not ok code 0
      Unable to install dependencies!
      

      I’ve noticed the npm version is a little low, but when i try to get it to the latest version, I get thrown with this.

      pi@raspberrypi:~ $ npm install latest-version
      (node:8905) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
      npm ERR! tar.unpack untar error /home/pi/.npm/rc/1.2.8/package.tgz
      npm ERR! Error: Method Not Allowed
      npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
      npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
      npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
      npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
      npm ERR! If you need help, you may report this *entire* log,
      npm ERR! including the npm and node versions, at:
      npm ERR!     <http://github.com/npm/npm/issues>
      
      npm ERR! System Linux 4.14.79-v7+
      npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "latest-version"
      npm ERR! cwd /home/pi
      npm ERR! node -v v8.11.1
      npm ERR! npm -v 1.4.21
      npm ERR! code E405
      npm ERR! 
      npm ERR! Additional logging details can be found in:
      npm ERR!     /home/pi/npm-debug.log
      npm ERR! not ok code 0
      

      I also tried to update npm again, but i get this.

      pi@raspberrypi:~ $ npm install latest-version
      (node:8915) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
      npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc'
      npm ERR! error rolling back  package-json@5.0.0 { Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc'
      npm ERR! error rolling back   errno: -39,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   syscall: 'rmdir',
      npm ERR! error rolling back   path: '/home/pi/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc' }
      npm ERR! tar.unpack untar error /home/pi/.npm/safe-buffer/5.1.2/package.tgz
      npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules'
      npm ERR! error rolling back  latest-version@4.0.0 { Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules'
      npm ERR! error rolling back   errno: -39,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   syscall: 'rmdir',
      npm ERR! error rolling back   path: '/home/pi/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules' }
      npm ERR! Error: Method Not Allowed
      npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
      npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
      npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
      npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
      npm ERR! If you need help, you may report this *entire* log,
      npm ERR! including the npm and node versions, at:
      npm ERR!     <http://github.com/npm/npm/issues>
      
      npm ERR! System Linux 4.14.79-v7+
      npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "latest-version"
      npm ERR! cwd /home/pi
      npm ERR! node -v v8.11.1
      npm ERR! npm -v 1.4.21
      npm ERR! code E405
      npm ERR! 
      npm ERR! Additional logging details can be found in:
      npm ERR!     /home/pi/npm-debug.log
      npm ERR! not ok code 0
      

      The raspberry pi I’m using is a Raspberry Pi 3 Model B Rev 1.2.
      I’m not quite sure if the error is coming from this

      (node:8915) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
      

      or entirely something else.

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @alenba2
        last edited by lavolp3

        @alenba2 your npm and node versions are way too old.

        Update npm using:

        npm install npm@latest -g
        

        (you may need sudo access for that, I’m not sure anymore. Try without first.)

        Update node FOR EXAMPLE by using n:

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

        Again, I’m not sure, try without sudo. If it’s not working try with sudo.

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

        1 Reply Last reply Reply Quote 1
        • A Offline
          alenba2
          last edited by

          Yea I just solved the problem. I basically changed software from Raspbian Sketch to Raspbian Jessie. Thanks for helping.

          lavolp3L 1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer @alenba2
            last edited by

            @alenba2 Well MM definitely works with stretch but nevertheless… if it works, I guess it’s ok

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

            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