mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
npm: favor 'package' over 'module' (#10924)
As I understand the documentation, 'module' is more specific: https://docs.npmjs.com/about-packages-and-modules Note that the 'package' term is used in CLI help: $ npm install --help Install a package Usage: npm install [<package-spec> ...]
This commit is contained in:
parent
67de197e7b
commit
fcab942a24
1 changed files with 5 additions and 5 deletions
|
@ -14,24 +14,24 @@
|
||||||
|
|
||||||
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
|
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
|
||||||
|
|
||||||
`npm install {{module_name}}@{{version}}`
|
`npm install {{package_name}}@{{version}}`
|
||||||
|
|
||||||
- Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
|
- Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
|
||||||
|
|
||||||
`npm install {{module_name}} --save-dev`
|
`npm install {{package_name}} --save-dev`
|
||||||
|
|
||||||
- Download the latest version of a package and install it globally:
|
- Download the latest version of a package and install it globally:
|
||||||
|
|
||||||
`npm install --global {{module_name}}`
|
`npm install --global {{package_name}}`
|
||||||
|
|
||||||
- Uninstall a package and remove it from the list of dependencies in `package.json`:
|
- Uninstall a package and remove it from the list of dependencies in `package.json`:
|
||||||
|
|
||||||
`npm uninstall {{module_name}}`
|
`npm uninstall {{package_name}}`
|
||||||
|
|
||||||
- Print a tree of locally installed dependencies:
|
- Print a tree of locally installed dependencies:
|
||||||
|
|
||||||
`npm list`
|
`npm list`
|
||||||
|
|
||||||
- List top-level globally installed modules:
|
- List top-level globally installed packages:
|
||||||
|
|
||||||
`npm list --global --depth={{0}}`
|
`npm list --global --depth={{0}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue