• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Adding new modules leads to irreversible error

Scheduled Pinned Locked Moved Bug Hunt
13 Posts 4 Posters 7.2k 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.
  • R Offline
    rudibarani Project Sponsor
    last edited by Jun 22, 2017, 6:32 AM

    Thanks everyone. I have a freshly installed Raspbian with Jessie, made sure NodeJS is up to date and installed MM2. That workes fine (except for one cosmetic error message from a bash script I describe in another post). This error only occurs when installing MM2 via the one-line-installer promoted on the website. The problem I describe occurred independent of the way I install MM2z

    MM2 runs fine with the sample config.js and throws the error I describe sometimes, but not always, when adding new modules. This happens without touching the standard config.js that came with MM as sample. It even happens during several rounds of completely deleting the MagicMirror-Folder and re-installing MM2 from
    scratch.

    That’s why I think the problem is independent of my or any config.js file. As you all imply that adding new modules should not change a thing unless I refer to them in the config.js, something else must be wrong.

    As the problem persists after several re-installations of MM2, it must be based either within it, as an unknown bug, or somewhere in the dependencies outside the application.

    Next, I will completely wipe my SD card and reinstall Raspbian to see if that helps…

    C 1 Reply Last reply Jun 22, 2017, 11:15 AM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @rudibarani
      last edited by Jun 22, 2017, 11:15 AM

      @rudibarani IF the mirror runs fine the error is of no concern. They know it’s there but it hasn’t been a problem.

      Good luck.

      1 Reply Last reply Reply Quote 0
      • R Offline
        rudibarani Project Sponsor
        last edited by Jun 24, 2017, 9:16 AM

        Hi everyone,
        thanks for your help and feedback. I have completely wiped my system and started again from scratch. This time, I can add modules without any errors. This indicates, that there likely was a problem with the framework nodejs and or MM2 depended on.

        There is one noticeable difference: When I am connected using SSH, I can only start the Mirror using

        node serveronly
        

        The command I used up to now

        DISPLAY=:0 npm start
        

        does not work any more.
        Is this intended behaviour?

        1 Reply Last reply Reply Quote 0
        • J Offline
          jfisher446
          last edited by Nov 17, 2018, 11:48 PM

          I also started having this issue. To be more precise, attempting to load any module which utilizes a node_helper results in the same error.
          I then realized that I’d mistakenly deleted the MagicMirror/modules/node_modules/ folder (thinking that I’d somehow put it there by mistake.

          To resolve: try to put node_modules back, along with the node_helper folder within it.

          M 1 Reply Last reply Nov 18, 2018, 12:27 AM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @jfisher446
            last edited by Mykle1 Nov 18, 2018, 12:29 AM Nov 18, 2018, 12:27 AM

            @jfisher446 said in Adding new modules leads to irreversible error:

            To resolve: try to put node_modules back, along with the node_helper folder within it.

            To accomplish this you can run npm install in the MagicMirror directory.

            EDIT

            I just realized that you responded to a one year old post. :-)

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • J Offline
              jfisher446
              last edited by Nov 22, 2018, 9:12 PM

              Top Google results ftw :)
              Your suggestion would have been helpful to know though. Thanks for the info!

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