2019-11-05 14:55:08 -05:00
|
|
|
---
|
|
|
|
title: npm-help
|
2020-11-01 07:54:36 +01:00
|
|
|
section: 1
|
2019-11-05 14:55:08 -05:00
|
|
|
description: 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..>]
|
2022-02-24 21:41:49 +00:00
|
|
|
|
|
|
|
alias: hlep
|
2019-11-05 14:55:08 -05:00
|
|
|
```
|
|
|
|
|
2021-03-23 14:58:11 -04:00
|
|
|
Note: This command is unaware of workspaces.
|
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### Description
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
If supplied a topic, then show the appropriate documentation page.
|
|
|
|
|
2020-11-01 07:54:36 +01:00
|
|
|
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.
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### Configuration
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2021-05-20 15:54:50 -04:00
|
|
|
#### `viewer`
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
* Default: "man" on Posix, "browser" on Windows
|
2021-05-20 15:54:50 -04:00
|
|
|
* Type: String
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
The program to use to view help content.
|
|
|
|
|
|
|
|
Set to `"browser"` to view html help content in the default web browser.
|
|
|
|
|
2023-06-08 05:24:49 -07:00
|
|
|
|
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### See Also
|
|
|
|
|
2020-11-01 07:54:36 +01:00
|
|
|
* [npm](/commands/npm)
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npm folders](/configuring-npm/folders)
|
2020-11-01 07:54:36 +01:00
|
|
|
* [npm config](/commands/npm-config)
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npmrc](/configuring-npm/npmrc)
|
|
|
|
* [package.json](/configuring-npm/package-json)
|
2020-11-01 07:54:36 +01:00
|
|
|
* [npm help-search](/commands/npm-help-search)
|