mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
npm-help-search, npm-explore, npm-rebuild: add pages (#18931)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# npm explore
|
||||
|
||||
> Browse an installed npm package.
|
||||
> More information: <https://docs.npmjs.com/cli/npm-explore>.
|
||||
|
||||
- Browse an installed package:
|
||||
|
||||
`npm explore {{package_name}}`
|
||||
|
||||
- Browse a package and run a command inside it:
|
||||
|
||||
`npm explore {{package_name}} -- {{command}}`
|
||||
@@ -0,0 +1,12 @@
|
||||
# npm help-search
|
||||
|
||||
> Search npm help documentation using a keyword.
|
||||
> More information: <https://docs.npmjs.com/cli/npm-help-search>.
|
||||
|
||||
- Search for commands or topics related to a keyword:
|
||||
|
||||
`npm help-search {{keyword}}`
|
||||
|
||||
- Search with multiple words:
|
||||
|
||||
`npm help-search {{keyword1 keyword2 ...}}`
|
||||
@@ -0,0 +1,7 @@
|
||||
# npm-rb
|
||||
|
||||
> This command is an alias of `npm-rebuild`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr npm-rebuild`
|
||||
@@ -0,0 +1,28 @@
|
||||
# npm rebuild
|
||||
|
||||
> Rebuild native Node.js packages after Node or dependency changes.
|
||||
> More information: <https://docs.npmjs.com/cli/npm-rebuild>.
|
||||
|
||||
- Rebuild a specific package:
|
||||
|
||||
`npm {{[rb|rebuild]}} {{package}}`
|
||||
|
||||
- Rebuild all installed packages:
|
||||
|
||||
`npm {{[rb|rebuild]}}`
|
||||
|
||||
- Rebuild with verbose output:
|
||||
|
||||
`npm {{[rb|rebuild]}} --verbose`
|
||||
|
||||
- Rebuild a package in a specific directory:
|
||||
|
||||
`npm {{[rb|rebuild]}} --prefix {{path/to/dir}} {{package}}`
|
||||
|
||||
- Rebuild without using the npm cache:
|
||||
|
||||
`npm {{[rb|rebuild]}} --no-cache`
|
||||
|
||||
- Rebuild in global mode:
|
||||
|
||||
`npm {{[rb|rebuild]}} {{[-g|--global]}}`
|
||||
Reference in New Issue
Block a user