npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

How to mute the extended messages of npm install? Like if --quiet existed?

I’ve noticed that there’s no --quiet nor --silent option to install. I would like to have the progress bar, but mute the “npm WARN …” messages. How to do this? 2>/dev/null doesn’t work as the progress bar also is on stderr.


Well, there is a --silent which may do what you want… It is a shorthand for setting the loglevel to silent.

https://docs.npmjs.com/misc/config#shorthands-and-other-cli-niceties