Sato Sato - 1 year ago 56
Node.js Question

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


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

Answer Source

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

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