2019-11-05 14:55:08 -05:00
|
|
|
---
|
2019-11-18 21:01:39 +02:00
|
|
|
section: cli-commands
|
2019-11-05 14:55:08 -05:00
|
|
|
title: npm-help
|
|
|
|
description: Get help on npm
|
|
|
|
---
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-18 21:01:39 +02:00
|
|
|
# npm-help(1)
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
## Get help on npm
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm help <term> [<terms..>]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Description
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### Configuration
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
#### viewer
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### See Also
|
|
|
|
|
|
|
|
* [npm](/cli-commands/npm)
|
|
|
|
* [npm folders](/configuring-npm/folders)
|
2020-10-02 17:52:19 -04:00
|
|
|
* [npm config](/cli-commands/config)
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npmrc](/configuring-npm/npmrc)
|
|
|
|
* [package.json](/configuring-npm/package-json)
|
2020-10-02 17:52:19 -04:00
|
|
|
* [npm help-search](/cli-commands/help-search)
|