From fcab942a247a43165e90c10618ca9954d6706ea5 Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Wed, 11 Oct 2023 09:33:22 +0200 Subject: [PATCH] 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 [ ...] --- pages/common/npm.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/npm.md b/pages/common/npm.md index ef909f613..ddaddedcf 100644 --- a/pages/common/npm.md +++ b/pages/common/npm.md @@ -14,24 +14,24 @@ - 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`: -`npm install {{module_name}} --save-dev` +`npm install {{package_name}} --save-dev` - 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`: -`npm uninstall {{module_name}}` +`npm uninstall {{package_name}}` - Print a tree of locally installed dependencies: `npm list` -- List top-level globally installed modules: +- List top-level globally installed packages: `npm list --global --depth={{0}}`