summaryrefslogtreecommitdiff
path: root/deps/npm/doc/cli/npm-install.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/doc/cli/npm-install.md')
-rw-r--r--deps/npm/doc/cli/npm-install.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/npm/doc/cli/npm-install.md b/deps/npm/doc/cli/npm-install.md
index f9d2104cd..47820a73c 100644
--- a/deps/npm/doc/cli/npm-install.md
+++ b/deps/npm/doc/cli/npm-install.md
@@ -7,7 +7,7 @@ npm-install(1) -- Install a package
npm install <tarball file>
npm install <tarball url>
npm install <folder>
- npm install <name> [--save|--save-dev|--save-optional]
+ npm install <name> [--save|--save-dev|--save-optional] [--save-exact]
npm install <name>@<tag>
npm install <name>@<version>
npm install <name>@<version range>
@@ -91,11 +91,19 @@ after packing it up into a tarball (b).
* `--save-optional`: Package will appear in your `optionalDependencies`.
+ When using any of the above options to save dependencies to your
+ package.json, there is an additional, optional flag:
+
+ * `--save-exact`: Saved dependencies will be configured with an
+ exact version rather than using npm's default semver range
+ operator.
+
Examples:
npm install sax --save
npm install node-tap --save-dev
npm install dtrace-provider --save-optional
+ npm install readable-stream --save --save-exact
**Note**: If there is a file or folder named `<name>` in the current