How to Suppress Output of npm install
Silencing the output of npm install has been quite the journey.
I’ve come across the flags --quiet and --silent.
--quiet will only log errors and warnings.
npm install --quiet
--silent should output nothing.
npm install --silent
However, I’ve found that dependency install scripts don’t always follow the specified flags.
We can redirect output to /dev/null to get a truly silent output.
npm install &>/dev/null
We can also redirect the output to a file if we want to keep the logs.