From 223344ce6e4e4cc9b2e42e201a7863861ddfd26e Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Wed, 16 Oct 2024 07:19:54 +0300 Subject: [PATCH] npm-install: add page (#14223) --- pages/common/npm-install.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/npm-install.md diff --git a/pages/common/npm-install.md b/pages/common/npm-install.md new file mode 100644 index 0000000000..7e2a11db9c --- /dev/null +++ b/pages/common/npm-install.md @@ -0,0 +1,20 @@ +# npm install + +> Install node packages. +> More information: . + +- Install dependencies listed in package.json: + +`npm install` + +- Download a specific version of a package and add it to the list of dependencies in `package.json`: + +`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 {{package_name}} {{-D|--save-dev}}` + +- Download the latest version of a package and install it globally: + +`npm install {{-g|--global}} {{package_name}}`