About 34,000,000 results
Open links in new tab
    Upvotes99Top Answeredited Jan 21, 2022 at 18:57

    The i flag is an alias for install, so

    npm i package

    is the same as

    npm install package

    From the documentation:

    npm install (with no args, in package dir)
    npm install [<@scope>/]<name>
    npm install [<@scope>/]<name>@<tag>
    npm install [<@scope>/]<name>@<version>
    npm install [<@scope>/]<name>@<version range>
    npm install <alias>@npm:<name>
    npm install <git-host>:<git-user>/<repo-name>
    npm install <git repo url>
    npm install <tarball file>
    npm install <tarball url>
    npm install <folder>

    aliases: npm i, npm add
    common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]
    Content Under CC-BY-SA license
    Was this helpful?
  1. Feedback
  2. node.js - What does the `npm i` command do? - Stack Overflow

  3. install - npm Docs

  4. What is the difference betweene 'npm i' and 'npm install'?

  5. An introduction to the npm package manager - Node.js

    Learn how to install, update, and run packages with npm, the standard tool for Node.js projects. Find out how to use versioning, scripts, and flags to manage your dependencies.

  6. Difference between npm i and npm ci in Node.js - GeeksforGeeks

  7. People also ask
  8. npm | Home

    npm is the company behind the npm Registry and npm CLI, the largest software registry in the world with more than two million packages. Learn how to use npm to build amazing things with JavaScript, or sign up for npm Pro to enjoy …

  9. npm i vs npm ci: Understanding the Difference - DEV Community

  10. npm cheatsheet

    Learn how to use npm commands for package management, installation, updating, removal, and more. See examples of npm i, npm install, npm update, npm rm, and other common npm commands.

  11. CLI Commands - npm Docs