Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable the new NPM spinner in the command-line?

It is mucking up the display of my unit tests, is there a simple way to turn it off?

enter image description here

like image 978
SavoryBytes Avatar asked Jul 16 '14 05:07

SavoryBytes


3 Answers

Ah found it! Run npm config set spin=false will disable it

like image 122
SavoryBytes Avatar answered Nov 09 '22 23:11

SavoryBytes


I believe answer to the literal question of how to do it on the command line (rather than via changing the config file) is npm --no-spin.

like image 27
ecmanaut Avatar answered Nov 09 '22 23:11

ecmanaut


You can do it on the fly, like this:

npm install --no-progress

Confirmed works in v3.10.9

like image 39
D'Arcy Rittich Avatar answered Nov 09 '22 22:11

D'Arcy Rittich