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

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


Solution 1:[1]

It's a shortcut for --loglevel info

See the Shorthands and Other CLI Niceties section:

  • -d: --loglevel info

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Cody Gray