SOLVED Can't Install Dependencies
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 email@example.com: This package is no longer being maintained and contains security vulnerabilities
npm WARN deprecated firstname.lastname@example.org: 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 email@example.com: Package no longer supported. Contact firstname.lastname@example.org for more info.
email@example.com install /home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver
firstname.lastname@example.org install /home/pi/MagicMirror/node_modules/jshint/node_modules/phantomjs-prebuilt
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
npm WARN optional dep failed, continuing email@example.com
npm WARN deprecated firstname.lastname@example.org: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated email@example.com: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
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!
npm version 1.4 seems quite not so high.
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.