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.

    Can't Install Dependencies

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 2.7k 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.
    • T Offline
      TBC_RC21
      last edited by

      Hi,
      I’m trying to install MM on a clean install of Raspbian (using a Raspberry Pi 3B) and my installation keeps crashing when it tries to update/install the dependencies. Below is the output from the terminal of the install. Originally I was having the issue in this here. I installed both nodejs, npm, and node-semver. After I installed those and reran the MM install (using the instructions here), I now get the errors below. I’ve had the magic mirror software on this pi before, but I can’t figure out what I’m doing wrong this time.

      Cloning MagicMirror Done!
      Installing dependencies …
      (node:4677) [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.84-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

      phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/jshint/node_modules/phantomjs-prebuilt
      node install.js

      PhantomJS not found on PATH
      Unexpected platform or architecture: linux/arm
      It seems there is no binary available for your platform/architecture
      Try to install PhantomJS globally
      npm WARN This failure might be due to the use of legacy binary “node”
      npm WARN For further explanations, please read
      /usr/share/doc/nodejs/README.Debian

      npm WARN optional dep failed, continuing phantomjs-prebuilt@2.1.16
      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!

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @TBC_RC21
        last edited by

        @tbc_rc21
        npm version 1.4 seems quite not so high.

        1 Reply Last reply Reply Quote 0
        • T Offline
          TBC_RC21
          last edited by

          Thanks that was it! I’m not sure how I managed to install such an old version. Incase anyone else has this issue, I followed the instructions here to install the current version.

          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