我看到一些帖子指的是使用-d参数运行npm 。 例如, 这个问题指的是做npm -d install coffee-script 。 还有一些其他页面也引用了这种语法,包括至少一个npm软件包的安装说明 。
但是我一直找不到这个-d参数的任何文档。 npm install的文档不提供-d ,也不是npm常见问题解答 ,也没有提供任何其他文档页面。
-d选项是否执行任何操作? 如果是这样,什么?
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?
最满意答案
看起来更难! :)
https://docs.npmjs.com/misc/config#shorthands-and-other-cli-niceties
这是--loglevel info的捷径
Look harder! :)
https://docs.npmjs.com/misc/config#shorthands-and-other-cli-niceties
It's a shortcut for --loglevel info
更多推荐
发布评论