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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.