mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
pnpm: add option placeholders and align arguments (#19108)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
- Download all the packages listed as dependencies in `package.json`:
|
||||
|
||||
`pnpm install`
|
||||
`pnpm {{[i|install]}}`
|
||||
|
||||
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
|
||||
- Download a package and add it to the list of dev dependencies in `package.json`:
|
||||
|
||||
`pnpm add {{[-D|--save-dev]}} {{module_name}}`
|
||||
`pnpm add {{module_name}} {{[-D|--save-dev]}}`
|
||||
|
||||
- Download a package and install it globally:
|
||||
|
||||
`pnpm add {{[-g|--global]}} {{module_name}}`
|
||||
`pnpm add {{module_name}} {{[-g|--global]}}`
|
||||
|
||||
- Uninstall a package and remove it from the list of dependencies in `package.json`:
|
||||
|
||||
`pnpm remove {{module_name}}`
|
||||
`pnpm {{[rm|remove]}} {{module_name}}`
|
||||
|
||||
- Print a tree of locally installed modules:
|
||||
|
||||
`pnpm list`
|
||||
`pnpm {{[ls|list]}}`
|
||||
|
||||
- List top-level globally installed modules:
|
||||
|
||||
`pnpm list {{[-g|--global]}} --depth {{0}}`
|
||||
`pnpm {{[ls|list]}} {{[-g|--global]}} --depth {{0}}`
|
||||
|
||||
Reference in New Issue
Block a user