Suggest an editImprove this articleRefine the answer for “How do you install a package?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)A package is installed with the **`npm install`** command (or the shorthand `npm i`). **Key point:** depending on the flag used, the package ends up in regular dependencies, dev dependencies, or gets installed globally.Shown above the full answer for quick recall.Answer (EN)ImageA package is installed with the `npm install` command (or the shorthand `npm i`). --- ### Installing dependencies in a project 1. **A regular dependency (goes into** `dependencies`**):** ```bash npm install <package-name> ``` 2. **A development-only dependency (in** `devDependencies`**):** ```bash npm install <package-name> --save-dev ``` --- ### Installing globally (to use as a CLI) ```bash npm install -g <package-name> ``` --- ### Summary To install a package, you use the `npm install` command with the package name. Depending on the flag, the package ends up in regular dependencies, in dev dependencies, or gets installed globally.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.