What is the "-d" in "npm -d install"?

Npm

Npm Problem Overview


I've seen some posts that refer to running npm with a -d argument. For example, this issue refers to doing npm -d install coffee-script. There are a few other pages that also refer to this syntax, including the install instructions for at least one npm package.

But I've been unable to find any documentation for this -d argument. The docs for npm install make no mention of -d, nor does the npm FAQ, nor do any of the other documentation pages I've looked through.

Does the -d option do anything? If so, what?

Npm Solutions


Solution 1 - Npm

It's a shortcut for --loglevel info

See the Shorthands and Other CLI Niceties section:

> * -d: --loglevel info

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJoe WhiteView Question on Stackoverflow
Solution 1 - NpmNoneView Answer on Stackoverflow