Read the statement by Michael Teeuw here.
Node/npm not working?
-
Bear with me, I have no coding experience aside from setting up my mirror 2+ years ago.
I went and updated my raspberry pi as well as the MM software, and when I ran the npm start command I got an error “module ansis not found”.
I read up on what that meant and what I found was that my node/npm were out of date. I looked into how to updating them to their latest version but I haven’t been successful. Even worse, when I try the node -v or npm -v command I get an odd message here:
node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version ‘GLIBCXX_3.4.29’ not found
My guess is I don’t have them anymore? I tried installing a new node/npm but I can’t seem to figure out any instructions. I was successful in installing something called node version modular (nvm) so I think that could help me, but I may be at the limit of my knowledge.
I’m hoping someone here has a better idea of what I can do to get me back to something that works. I would be very grateful if any instructions are in the form of what exactly to type in the terminal lol.
Thank you!
-
@greaser01 not new pi, just software
I gave you the instructions (there is no ‘list’ of steps, other than these I am giving)
use my script to save your MM config … copy the folder off the pi, or save on github (part of backup)
go to the raspi OS page and flash a new SD card with new OS
boot that sd card
run my MM install script, gave link to page to copy/paste the commandwhen MM is running, stop it
copy the backup back to the pi, or use from github (part of the restore script)
run the restore script to reinstall all the modules and
config and custom.css
restart MMshould be as you had it before
don’t continue on if a step doesn’t work…
come back here -
@greaser01 you ate running on the buster level os
lsb_release -a
will show you
the version of nodejs we need for MagicMirror will not run on buster, due yo the missing library you noted, which is no longer provided.
so sadly you have to upgrade everything
use my backup script to save MagicMirror config and module list someplace
https://github.com/sdetweil/MagicMirror-backup-restoreinstall new os to sd card (different sd card)
use my install script to install MagicMirror
https://github.com/sdetweil/MagicMirror_scriptsuse my restore script to put back your config and modules
-
When you mean upgrade everything what does that all mean. Just software updates or a whole new raspberry pi (im using a 3B i think)? If it is just software could I be pointed in the direction of how to upgrade everything?
If I need a new pi I think I’ll be alright setting everything up again. Would it be worth getting a 5 or is a 4 more than plenty. Or is the SD card all I need.
Thanks for the guidance!
-
@greaser01 not new pi, just software
I gave you the instructions (there is no ‘list’ of steps, other than these I am giving)
use my script to save your MM config … copy the folder off the pi, or save on github (part of backup)
go to the raspi OS page and flash a new SD card with new OS
boot that sd card
run my MM install script, gave link to page to copy/paste the commandwhen MM is running, stop it
copy the backup back to the pi, or use from github (part of the restore script)
run the restore script to reinstall all the modules and
config and custom.css
restart MMshould be as you had it before
don’t continue on if a step doesn’t work…
come back here -