Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

npm

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?

like image 872
Joe White Avatar asked Jan 09 '12 02:01

Joe White


1 Answers

It's a shortcut for --loglevel info

See the Shorthands and Other CLI Niceties section:

  • -d: --loglevel info
like image 108
Nobody Avatar answered Sep 20 '22 23:09

Nobody