mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
npm-{update, uninstall, install}: adjust and unify argument order (#19468)
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
|
||||
- Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
|
||||
|
||||
`npm {{[i|install]}} {{[-D|--save-dev]}} {{package_name}}`
|
||||
`npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}`
|
||||
|
||||
- Download the latest version of a package and install it globally:
|
||||
|
||||
`npm {{[i|install]}} {{[-g|--global]}} {{package_name}}`
|
||||
`npm {{[i|install]}} {{package_name}} {{[-g|--global]}}`
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- Remove a package globally:
|
||||
|
||||
`npm {{[r|uninstall]}} {{[-g|--global]}} {{package_name}}`
|
||||
`npm {{[r|uninstall]}} {{package_name}} {{[-g|--global]}}`
|
||||
|
||||
- Remove multiple packages at once:
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- Update a package globally:
|
||||
|
||||
`npm {{[up|update]}} {{[-g|--global]}} {{package}}`
|
||||
`npm {{[up|update]}} {{package}} {{[-g|--global]}}`
|
||||
|
||||
- Update multiple packages at once:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user