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

154 Views Asked by At

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
0

There are 0 best solutions below