I\'m using npm run script to do tasks such as \"build\" and \"test\".
For example, my package.json
looks like the following:
{
\"name\
As others have noted, the problem with --silent
is you lose all output. There's another way that seems to work for most cases:
npm run something 2>/dev/null
If one of the binaries you are running happens to write to stderr, then that will be suppressed. But most node stuff writes to stdout, so it shouldn't be a problem.
Of course this will work only in a shell environment that supports output redirection.