diff options
author | isaacs <i@izs.me> | 2014-03-19 09:25:40 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-03-25 17:42:22 -0700 |
commit | bd547d65983c190eb69ca44d633ea31aca2b7c98 (patch) | |
tree | 01ff3b4e40cb9fc3ed5a42abc4d44cb65d5c7dec /deps/npm/doc/cli/npm-install.md | |
parent | 7989f42f866699b726f596add387fb19fa39bc55 (diff) | |
download | android-node-v8-bd547d65983c190eb69ca44d633ea31aca2b7c98.tar.gz android-node-v8-bd547d65983c190eb69ca44d633ea31aca2b7c98.tar.bz2 android-node-v8-bd547d65983c190eb69ca44d633ea31aca2b7c98.zip |
npm: upgrade to 1.4.6
* Documentation upgrades
* Fix glob bug which prevents proper README publishing
* node-gyp upgrade to 0.13
* Documentation updates
* Add --save-exact to save an exact dep (instead of a range)
* alias 't' to 'test'
Diffstat (limited to 'deps/npm/doc/cli/npm-install.md')
-rw-r--r-- | deps/npm/doc/cli/npm-install.md | 10 |
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 f9d2104cd5..47820a73c0 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 |