Show prompts when running npm install

After upgrading to the latest version of npm requests are no longer displayed.

 $ npm --version 1.4.13 

Now that the packages are installed, I really like the ASCII animation that I love, but how can I see the requests that were made? I mean the following:

 npm http GET https://registry.npmjs.org/<package-name> ... 

Is there an option for npm install to enable this feature?

+7
source share
1 answer

It looks like they changed the default value of loglevel .

 npm install --loglevel http 

You can also add this line to your ~/.npmrc :

 loglevel = http 

Please note that this is ini format. You should add this line to the global section, for example. in the first line of the file.

Additional information: https://www.npmjs.org/doc/misc/npm-config.html

+18
source share

All Articles