什么是“-d"?在“npm -d install"中? [英] What is the "-d" in "npm -d install"?
问题描述
我看到一些帖子提到使用 -d
参数运行 npm
.比如这个问题是指做npm -d install coffee-script代码>.还有一些其他页面也参考了此语法,包括至少一个 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.
但是我一直找不到关于这个 -d
参数的任何文档.npm install
的文档没有提到 -d
,npm FAQ 也没有,我的任何其他文档页面也没有我看过了.
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.
-d
选项有什么作用吗?如果是,那是什么?
Does the -d
option do anything? If so, what?
推荐答案
--loglevel info
See the Shorthands and Other CLI Niceties section:
-d
:--loglevel info
这篇关于什么是“-d"?在“npm -d install"中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!