Read the statement by Michael Teeuw here.
Is node_helper really required?
-
I see a lot of people putting:
const NodeHelper = require("node_helper");
in theirnode_helper.js
file. Is this right or even necessary?It doesn’t make much sense to state that a file require itself! And if it is referring to MM’s internal
node_helper
, then shouldn’t the MM core be made to recognize this by itself?I’m asking, because doing that, make your
npm-check
always complain aboutnode_helper
not being installed or missing. -
It is not, and should not, AFAICT. -
@E3V3A that is not true.
A node helper is not required for a module, but if a module has a nodehelper this statement required, because it imports this file into your node helper https://github.com/MichMich/MagicMirror/blob/master/modules/node_modules/node_helper/index.js
-
@strawberry-3.141 Oh!? That is funny, because I removed it, and there is no change in anything, module ran fine without it. Perhaps because I’m not using most of the content from that file, while the rest is already defined?