isaacs/npm — pull request #2166 by rvagg (2012-02-16 09:35:46+00:00)
Title: ignore logfd/outfd streams in makeEnv()

[Streams are allowed as logfd and outfd](https://github.com/isaacs/npm/blob/master/lib/utils/output.js#L120-123) and work in most places, but not for `npm.install` which gets us to `makeEnv()` in lifecycle.js where outfd and/or logfd are passed to `JSON.stringify()` which fails on circular references (and is nonsense for Streams).

I believe that the appropriate thing to do is just ignore them.