mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 22:04:26 +00:00

PR-URL: https://github.com/nodejs/node/pull/35474 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
45 lines
981 B
Markdown
45 lines
981 B
Markdown
---
|
|
section: cli-commands
|
|
title: npm-help
|
|
description: Get help on npm
|
|
---
|
|
|
|
# npm-help(1)
|
|
|
|
## Get help on npm
|
|
|
|
### Synopsis
|
|
|
|
```bash
|
|
npm help <term> [<terms..>]
|
|
```
|
|
|
|
### Description
|
|
|
|
If supplied a topic, then show the appropriate documentation page.
|
|
|
|
If the topic does not exist, or if multiple terms are provided, then 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
|
|
|
|
* Default: "man" on Posix, "browser" on Windows
|
|
* Type: path
|
|
|
|
The program to use to view help content.
|
|
|
|
Set to `"browser"` to view html help content in the default web browser.
|
|
|
|
### See Also
|
|
|
|
* [npm](/cli-commands/npm)
|
|
* [npm folders](/configuring-npm/folders)
|
|
* [npm config](/cli-commands/config)
|
|
* [npmrc](/configuring-npm/npmrc)
|
|
* [package.json](/configuring-npm/package-json)
|
|
* [npm help-search](/cli-commands/help-search)
|