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.jsfile. 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-checkalways complain aboutnode_helpernot 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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login