npm-help

获取有关 npm 的帮助

选择 CLI 版本:

概要

¥Synopsis

npm help <term> [<terms..>]
alias: hlep

注意:此命令对工作区无感知。

¥Note: This command is unaware of workspaces.

描述

¥Description

如果提供了主题,则显示相应的文档页面。

¥If supplied a topic, then show the appropriate documentation page.

如果主题不存在,或者提供了多个术语,则 npm 将运行 help-search 命令来查找匹配项。请注意,如果 help-search 找到单个主题,那么它将在该主题上运行 help,因此唯一匹配等同于指定主题名称。

¥If the topic does not exist, or if multiple terms are provided, then npm will run the help-search command to find a match. Note that, if help-search finds a single subject, then it will run help on that topic, so unique matches are equivalent to specifying a topic name.

配置

¥Configuration

viewer

  • 默认值:Posix 上的 "man",Windows 上的 "browser"

    ¥Default: "man" on Posix, "browser" on Windows

  • 类型:字符串

    ¥Type: String

用于查看帮助内容的程序。

¥The program to use to view help content.

设置为 "browser" 以在默认 Web 浏览器中查看 html 帮助内容。

¥Set to "browser" to view html help content in the default web browser.

也可以看看

¥See Also

npm 中文网 - 粤ICP备13048890号