I have used MMM-MQTT as the basis for my MMM-TeslaLogger module. In MMM-MQTT there is an own local directory node_modules. At first sight this local dir is identical with the dir node_modules in the root directory of Magic Mirror.
I now try to get rid of the local dir node_modules in my module. But I do not succeed.
In MMM-TeslaLogger.js I only found one reference to the local node_modules, namely jsonpointer.js. This is also the case in MMM-MQTT.
But if I change this reference to the node_modules in the Magic Mirror root, the module doesn’t run anymore and partly generates error messages. The pm2 log also shows error messages for the node_helper. These seem to refer to the line after the last line of the file ???
Unfortunately I don’t have access to the error messages right now - sorry. I will deliver them later.
I would be very grateful for any help.