Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/lib/content/commands/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Even if you never publish your package, you can still get a lot of benefits of u

In global mode (ie, with `-g` or `--global` appended to the command), it installs the current package context (ie, the current working directory) as a global package.

> NOTE: Global mode installs the current package *context*, not its local `node_modules`.
> No `node_modules` folder is created in the current directory, so the package's own `dependencies` are not installed alongside it.
> If you need the same package usable locally as well, run a separate `npm install` in that directory.

By default, `npm install` will install all modules listed as dependencies in [`package.json`](/configuring-npm/package-json).

With the `--production` flag (or when the `NODE_ENV` environment variable is set to `production`), npm will not install modules listed in `devDependencies`.
Expand Down
Loading