Read the statement by Michael Teeuw here.
Issues installing on rpi2
-
Hi folks,
tried to setup a new MM version on a rpi2. Followed every step in the (current) manual installation procedure, but it fails every time. Tried to reinstall and add features several times, now I do not know what to do next… any idea?Here are the logs from ‘npm install’
pi@raspberrypi:~/MagicMirror $ npm install > electron-chromedriver@6.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver > node ./download-chromedriver.js internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron-download/lib/index.js:4:15) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron-chromedriver@6.0.0 install: `node ./download-chromedriver.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron-chromedriver@6.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-15T07_19_42_745Z-debug.log pi@raspberrypi:~/MagicMirror $ node ./download-chromedriver.js internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/home/pi/MagicMirror/download-chromedriver.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)and as this seems to be related to electron the log for: ‘npm install electron@6.0.12’
pi@raspberrypi:~/MagicMirror $ npm install electron@6.0.12 > electron-chromedriver@6.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver > node ./download-chromedriver.js internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron-download/lib/index.js:4:15) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm WARN grunt-eslint@22.0.0 requires a peer of grunt@>=1 but none is installed. You must install peer dependencies yourself. npm WARN grunt-stylelint@0.14.0 requires a peer of stylelint@^13.2.0 but none is installed. You must install peer dependencies yourself. npm WARN grunt-yamllint@0.3.0 requires a peer of grunt@>=1.0.1 but none is installed. You must install peer dependencies yourself. npm WARN stylelint-config-recommended@3.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself. npm WARN stylelint-config-standard@20.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron-chromedriver@6.0.0 install: `node ./download-chromedriver.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron-chromedriver@6.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-15T07_22_40_386Z-debug.log -
What version of NPM are you using?
npm -v -
Running on 6.14.4’
pi@raspberrypi:~ $ npm version { npm: '6.14.4', ares: '1.15.0', brotli: '1.0.7', cldr: '35.1', http_parser: '2.9.3', icu: '64.2', modules: '64', napi: '6', nghttp2: '1.39.2', node: '10.20.1', openssl: '1.1.1e', tz: '2019c', unicode: '12.1', uv: '1.34.2', v8: '6.8.275.32-node.56', zlib: '1.2.11' } -
Tha’s weird. You could try installing ‘debug’:
npm install debug -
@MichMich @K-w-b its because he is on a pi2, armv6l…
he needs to do
npm install --only=prod
to NOT try to load the chromedriver, which doesn’t exist… (same as our optional dependency for electron on armv6l) (I think its spectron which is dragging in the chromedriver)@K-w-b please use the automated install script… it fixes a bunch of problems om armv6l systems.
see here , https://github.com/sdetweil/MagicMirror_scripts
read the readme online for the command to issue…
u will need to erase the MagicMirror folder to run install again -
thank you @MichMich and @sdetweil for the responsed.
before I saw Sam’s notice, I wiped the SD card again and started with a new raspbian version from scratch. Everything from the manual installation worked fine now - MM launches. The only thing I might have done different is rebooting raspbi after upgrading
sudo apt full-upgrade- Needless to say that this is a major facepalm on my side.
So to whoever reads this in the future - follow the instructions shown on the screen (!) -
@K-w-b great news!!,
which raspian version were u trying and which worked?
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