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 error? Blank magicmirror. Please help - desperate, frustrated and grateful for the right direction

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 4 Posters 2.9k Views 4 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @nakulbende
      last edited by

      @nakulbende

      Was it working ever? If npm is v1 then you are seriously down level and should upgrade that.

      If it was working and stopped after an addition then remove/comment out that addition.

      It could be one of the modules you installed. You could disable all and turn them on one by one to determine which (if any) is causing the issue.

      Frankly, I would use @sdetweil’s installer script. It really is the best option and he fully supports it. It has saved many a user and I have found it quite useful. I dare say that everyone here would say the same and recommend it.

      You’ll find the url here
      https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

      Create a working config
      How to add modules

      S N 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @Mykle1
        last edited by

        @nakulbende @Mykle1 I agree. lets back up and start with the default config and then add one module at a time…

        so, rename your config.js

        cd ~/MagicMirror/config
        mv config.js config.js.save
        cp config.js.sample config.js
        

        and then start the mirror

        again:
        now, pic one module,
        copy the module section from the config.js.save to the config.js

        restart the mirror… verify
        save config.js

        go to again

        many modules cannot be used more than once without special handling…
        so don’t do two of anything yet

        mmm-buller only documents one dependency
        “googleapis” : “>=33.0.0”

        so, do that manually
        from the mmm-buller folder do
        npm install googleapis@33.0.0

        I don’t think u have to reinstall the base…

        let me know

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • N Offline
          nakulbende @Mykle1
          last edited by

          @Mykle1 How do you update npm - when I do this, would I have to run npm install in each module folder again?

          The mirror works with default configuration just fine. I will try disabling them one by one.

          I did use the usual script bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)". How is @sdetweil’s script different?

          S Mykle1M 2 Replies Last reply Reply Quote 0
          • N Offline
            nakulbende
            last edited by

            Thanks all - I will install dependencies and try to add modules one by one. Is there a way to backup my installation if I do decide to reinstall using @sdetweil 's script? Would just copying the whole ~/MagicMirror folder work?

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

              @nakulbende the one you used hasn’t been updated in quite some time…
              quite a few things have changed…

              my scipt, which will replace the current one on next release, has been updated and tested for about 6 months.
              see here
              https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

              there is also a new version update script, that will help migrate from one MM release to another…
              see here https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

              to ‘backup’. just rename the MagicMirror folder, no copy, no delete…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @nakulbende install assumes that NO previous installation exists…so, no MagicMirror folder.

                the installer and updater both create log files so we can see what happened at the time.
                the original does not

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @nakulbende
                  last edited by

                  @nakulbende said in Node/ npm error? Blank magicmirror. Please help - desperate, frustrated and grateful for the right direction:

                  How do you update npm - when I do this, would I have to run npm install in each module folder again?

                  I see @sdetweil has been in contact with you. You’re in good hands. Follow his directions and advice. I’m pretty sure his installer will install the correct versions of node and npm so you won’t have to do anything regarding that. Any modules you install after that (that require dependencies) will need you run npm install in their respective folders.

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nakulbende
                    last edited by

                    @sdetweil - your script worked flawlessly, and everything just works. I have a few kinks to sort out but it is looking like i can finish my wife’s gift before christmas after all. I can’t thank you enough!

                    :folded_hands_medium_skin_tone: :person_bowing_medium_skin_tone:

                    Thank you all for pointing me in the right direction!

                    S FoziF 2 Replies Last reply Reply Quote 0
                    • S Offline
                      sdetweil @nakulbende
                      last edited by

                      @nakulbende cool… glad it helped…

                      come on back if you find some other problem!

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • FoziF Offline
                        Fozi Project Sponsor @nakulbende
                        last edited by

                        @nakulbende oh, great you sorted it out! My recommendation on Reddit to join this forum was not that bad😁. Another happy builder on bord!

                        HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 2 / 2
                        • 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