Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to silence the detailed output logs of `npm install` command?

This might be a silly question, but I really wanted to know is there any way to see only the errors / success logs while running the npm install command by removing details of entire package installation details.

Is there any helpful optional arguments which we can pass along with npm install command which will give only the minimal logs without detailed description of each every dependency installation ?

like image 336
Arun Ramachandran Avatar asked May 16 '18 09:05

Arun Ramachandran


2 Answers

Yeah, of course, there is.

Try

npm install -s (or --silent)

or

npm install -q (or --quiet)
like image 136
gokcand Avatar answered Nov 15 '22 06:11

gokcand


See this issue on github.

If you are lazy (pick one):

  1. Use --silent flag.
  2. Set logging level: npm config set loglevel warn. This will print warnings and errors.
like image 44
Tymur Valiiev Avatar answered Nov 15 '22 08:11

Tymur Valiiev