microcule icon indicating copy to clipboard operation
microcule copied to clipboard

DeprecationWarnings are written out on the console

Open mikaelkaron opened this issue 9 years ago • 3 comments

When running a hook with deprecated api usage you can see:

(node:13604) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`,
 `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.

if you try to use a package like trumpet things get even weirder.

Possible solutions would be to somehow set the process the same way as passing --no-deprecation in the cli, perhaps nodejs/node@c6656db352973d6aea24cb1a3c76adf042b25446 can shed some light on that.

mikaelkaron avatar Feb 23 '17 20:02 mikaelkaron

Is this because the deprecation warnings are coming over STDERR? Or are they coming from STDOUT?

Marak avatar Feb 24 '17 01:02 Marak

They are coming over STDERR from what I can see.

mikaelkaron avatar Feb 24 '17 01:02 mikaelkaron

I'll merge this since it will fix the issue.

We may have to migrate the STDERR output code to STDIO 3.

Marak avatar Feb 24 '17 01:02 Marak