Read the statement by Michael Teeuw here.
Library error after full reinstallation (full version Raspbian and MagicMirror version 2.5.0)
-
it was really required that I completly reinstall the Raspbian pi 3B+ sd card. Format, first install the full Rasbian latest version. After that I run update & upgrade and also the firmware update. Then I searched and found the MagicMirror installer I used before:
bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”.
But this ended with the error not installed npm. I read that I was not the first one with this problem. So I desidded to continue with the manual installation as descripted in the same MM installation document. First nodejs and then npm. But after the npm installation he advised me to run npm audit and npm audit fix. I have to do it several time. So most of the errors are solved.
Hopefully I start Magic Mirror and got a library error i don’t know how to fix.
/home/pi/MagicMirror/node_modules/electron/dist/electron: /lib/arm-linux-gnueabihf/libc.so.6: versionGLIBC_2.27' not found (required by /home/pi/MagicMirror/node_modules/electron/dist/electron) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.5.0 start:
sh run-start.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.5.0 start 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/2018-12-28T21_06_45_195Z-debug.logIs this a known error with for met a simple solution to solve this problem?
Who will help me with this error.
Kind regards
Jan -
@jevanha said in Library error after full reinstallation (full version Raspbian and MagicMirror version 2.5.0):
it was really required that I completly reinstall the Raspbian pi 3B+ sd card. Format, first install the full Rasbian latest version. After that I run update & upgrade and also the firmware update. Then I searched and found the MagicMirror installer I used before:
Re: Unable to install dependencies - npm not found
With Rasbian of 2018-11-13, I had the same issue. So I install only npm,
sudo apt-get install npm sudo npm install -g npm@latest
Also I used the pre-built node which is 8.x in the latest version of Rasbian.
While I install, I made a video and please check https://youtu.be/UBgH5hejYtM.Thanks,
Dependency Versions
- OS : 2018-11-13-raspbian-stretch-full.img
- MagicMirror2 : 2.5.0
- MMM-Hotword : 1.1.0
- MMM-AssistantMk2 : 2.1.2
-
@makepluscode
Hello thanks for your reaction and advise. Lot’s of work to do for me ;-). Nice job to do tomorrow at News Years day.For tonight have a nice evening but be carefull with fireworks and a Happy New Year.
I’ll let you know about my result.
Regards
Jan -
@jevanha Getting the same error on my second MM, haven’t fiddled around with it much yet though. Will let you know when I have looked at it. 😄
-
Did a full reinstall last week. Last version os contains node, but misses npm. After installing npm the mm install script worked. I had to delete the MagicMirror directory which was kept from the first failed install
-
This needs a script to check for npm and node, and install right version
-
@jevanha
After completly reinstalling MagicMirror 250 works. Thank you for your wonderfull documented installation manual. -
Couple things:
- Please use the Markdown features of the board when posting code and logs.
- I would advise against using the Magic Mirror installation script at this time. It hasn’t been tested as well as the rest of the system. Perform a manual installation for better results.
- Please remember to mark this topic as solved.
-
@bhepler said in Library error after full reinstallation (full version Raspbian and MagicMirror version 2.5.0):
I would advise against using the Magic Mirror installation script at this time. It hasn’t been tested as well as the rest of the system. Perform a manual installation for better results.
Second this.
For anyone who comes across this error:
/home/pi/MagicMirror/node_modules/electron/dist/electron: /lib/arm-linux-gnueabihf/libc.so.6: version GLIBC_2.27’ not found (required by /home/pi/MagicMirror/node_modules/electron/dist/electron) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR!
It may be caused by npm trying to install electron v4.0.0, this version has some reference errors on the Pi: https://github.com/electron/electron/issues/16205 and a lower version (v3.0.13) should be used.