Read the statement by Michael Teeuw here.
Can't Install Dependencies
-
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/issuesnpm 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.jsphantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/jshint/node_modules/phantomjs-prebuilt
node install.jsPhantomJS 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.Debiannpm 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! -
@tbc_rc21
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.