Ionică Bizău
Ionică Bizău

Reputation: 113455

Show requests when running npm install

After upgrading to the latest version of npm, the requests are not shown anymore.

$ npm --version
1.4.13

Now, pretty ASCII animation is displayed when the packages are installed - that I love, but how can I see the requests that are made? I mean these ones:

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

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

Upvotes: 9

Views: 3623

Answers (1)

zarkone
zarkone

Reputation: 1355

Seems like they have changed default loglevel.

npm install --loglevel http

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

loglevel = http

Note that this is ini format. You must add this line at the global section, e.g. at the first line of the file.

More info: https://www.npmjs.org/doc/misc/npm-config.html

Upvotes: 19

Related Questions