Sato Sato - 4 months ago 13
Node.js Question

How to disable stdout/stderr output when `node bin/www`?

When

npm start
or
ndoe bin/www
, it will put error to stderr and output
GET / **
to stdout, how to disable the logging?

Answer

If you are in a bash-shell, you can pipe all output to dev/null:

node bin/www > /dev/null 2>&1