Michael Durrant
Michael Durrant

Reputation: 96544

Node - how to stop undefined when module.exports.repl doesn't exist?

As indicated in node.js displays "undefined" on the console node will say undefined intentionally and is not usually an issue.

The answer https://stackoverflow.com/a/18487887/631619 indicates that you can set

module.exports.repl.ignoreUndefined = true;

However when in node I find module.exports (with tab completion) but there is no "repl" namespace within it.

How to address this and turn off the undefined message ?

node is 4.2.6

Upvotes: 1

Views: 164

Answers (0)

Related Questions