MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Node/npm not working?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 239 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      greaser01
      last edited by

      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!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @greaser01
        last edited by

        @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 command

        when 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 MM

        should be as you had it before

        don’t continue on if a step doesn’t work…
        come back here

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @greaser01
          last edited by

          @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-restore

          install new os to sd card (different sd card)
          use my install script to install MagicMirror
          https://github.com/sdetweil/MagicMirror_scripts

          use my restore script to put back your config and modules

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • G Offline
            greaser01
            last edited by

            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!

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @greaser01
              last edited by

              @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 command

              when 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 MM

              should be as you had it before

              don’t continue on if a step doesn’t work…
              come back here

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • G greaser01 has marked this topic as solved on
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy