Read the statement by Michael Teeuw here.
Adding new modules leads to irreversible error
-
@rudibarani said in Adding new modules leads to irreversible error:
My new additions last evening where:
MMM-Traffic
MMM-TrafficCal
MMM-MyWeather
MMM-WundergroundWell that tells me either you didn’t install them correctly or they are not in the config.js properly. This is not MM’s fault. IF it was working before you added them then something within those additions is incorrect. SO take them ALL out of your config.js file and see if MM runs. IF it does then enter them ONE at a time and restart your mirror to ensure that there is no problem.
If you don’t want to do that or post your config file then really there isn’t much anyone can do to help you. It’s like doing surgery in the dark…
Simply adding modules then blaming MM isn’t really solving anything. It’s user error and that’s the easiest way I can put it. Again, if you want help please listen and read what people are asking you to do they are trying to help. If you’re not willing to do that I’m afraid there is little anyone can do to help.
People that are here donating their time to further a project … but they cannot spend hours trying to guess at what the problem is. SO they ask for things to better help you.
-
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…
-
@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.
-
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? -
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.
-
@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. :-)
-
Top Google results ftw :)
Your suggestion would have been helpful to know though. Thanks for the info!