什么是“-d"?在“npm -d install"中? [英] What is the "-d" in "npm -d install"?

查看:48
本文介绍了什么是“-d"?在“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 的文档没有提到 -dnpm 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

请参阅速记和其他 CLI 技巧em> 部分:

See the Shorthands and Other CLI Niceties section:

  • -d: --loglevel info

这篇关于什么是“-d"?在“npm -d install"中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆