From: isaacs Date: Thu, 24 Oct 2013 16:21:59 +0000 (-0700) Subject: npm@1.3.12 X-Git-Tag: v0.10.22~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6f176e10872cac9dcdcd46a92c9ebfe4740f117;p=platform%2Fupstream%2Fnodejs.git npm@1.3.12 --- diff --git a/deps/npm/Makefile b/deps/npm/Makefile index 28c7ff6..326d6f0 100644 --- a/deps/npm/Makefile +++ b/deps/npm/Makefile @@ -71,7 +71,7 @@ link: uninstall node cli.js link -f clean: ronnclean doc-clean uninstall - rm npmrc + rm -rf npmrc node cli.js cache clean uninstall: @@ -154,13 +154,13 @@ html/doc/misc/%.html: doc/misc/%.md $(html_docdeps) ronn: node_modules/.bin/ronn node_modules/.bin/ronn: - node cli.js install ronn + node cli.js install ronn --no-global doc: man man: $(cli_docs) $(api_docs) -test: +test: doc node cli.js test publish: link doc diff --git a/deps/npm/doc/cli/npm-cache.md b/deps/npm/doc/cli/npm-cache.md index 90a55d9..af3cfac 100644 --- a/deps/npm/doc/cli/npm-cache.md +++ b/deps/npm/doc/cli/npm-cache.md @@ -33,9 +33,9 @@ Used to add, list, or clear the npm cache folder. ## DETAILS -npm stores cache data in `$HOME/.npm`. For each package that is added -to the cache, three pieces of information are stored in -`{cache}/{name}/{version}`: +npm stores cache data in the directory specified in `npm config get cache`. +For each package that is added to the cache, three pieces of information are +stored in `{cache}/{name}/{version}`: * .../package/: A folder containing the package contents as they appear in the tarball. @@ -57,7 +57,7 @@ they do not make an HTTP request to the registry. ### cache -Default: `$HOME/.npm` on Posix, or `$HOME/npm-cache` on Windows. +Default: `~/.npm` on Posix, or `%AppData%/npm-cache` on Windows. The root cache folder. diff --git a/deps/npm/doc/cli/npm-dedupe.md b/deps/npm/doc/cli/npm-dedupe.md index 849d98f..d3be010 100644 --- a/deps/npm/doc/cli/npm-dedupe.md +++ b/deps/npm/doc/cli/npm-dedupe.md @@ -47,6 +47,10 @@ registry. This feature is experimental, and may change in future versions. +The `--tag` argument will apply to all of the affected dependencies. If a +tag with the given name exists, the tagged version is preferred over newer +versions. + ## SEE ALSO * npm-ls(1) diff --git a/deps/npm/doc/cli/npm-install.md b/deps/npm/doc/cli/npm-install.md index 07ba2b0..a537bb8 100644 --- a/deps/npm/doc/cli/npm-install.md +++ b/deps/npm/doc/cli/npm-install.md @@ -152,7 +152,9 @@ For example: npm install sax@">=0.1.0 <0.2.0" bench supervisor -The `--tag` argument will apply to all of the specified install targets. +The `--tag` argument will apply to all of the specified install targets. If a +tag with the given name exists, the tagged version is preferred over newer +versions. The `--force` argument will force npm to fetch remote resources even if a local copy exists on disk. diff --git a/deps/npm/doc/cli/npm-outdated.md b/deps/npm/doc/cli/npm-outdated.md index 25269eb..4d58353 100644 --- a/deps/npm/doc/cli/npm-outdated.md +++ b/deps/npm/doc/cli/npm-outdated.md @@ -10,6 +10,10 @@ npm-outdated(1) -- Check for outdated packages This command will check the registry to see if any (or, specific) installed packages are currently outdated. +The resulting field 'wanted' shows the latest version according to the +version specified in the package.json, the field 'latest' the very latest +version of the package. + ## SEE ALSO * npm-update(1) diff --git a/deps/npm/doc/cli/npm-prune.md b/deps/npm/doc/cli/npm-prune.md index 0410214..88c5475 100644 --- a/deps/npm/doc/cli/npm-prune.md +++ b/deps/npm/doc/cli/npm-prune.md @@ -4,6 +4,7 @@ npm-prune(1) -- Remove extraneous packages ## SYNOPSIS npm prune [ [ [@ + +When installing dependencies, a preferred tagged version may be specified: + + npm install --tag + +This also applies to `npm dedupe`. + +Publishing a package always sets the "latest" tag to the published version. + ## SEE ALSO * npm-publish(1) +* npm-install(1) +* npm-dedupe(1) * npm-registry(7) * npm-config(1) * npm-config(7) diff --git a/deps/npm/doc/misc/npm-config.md b/deps/npm/doc/misc/npm-config.md index 19eaf93..750b809 100644 --- a/deps/npm/doc/misc/npm-config.md +++ b/deps/npm/doc/misc/npm-config.md @@ -146,7 +146,7 @@ See also the `strict-ssl` config. ### cache -* Default: Windows: `%APPDATA%\npm-cache`, Posix: `~/.npm` +* Default: Windows: `%AppData%\npm-cache`, Posix: `~/.npm` * Type: path The location of npm's cache directory. See `npm-cache(1)` diff --git a/deps/npm/html/doc/README.html b/deps/npm/html/doc/README.html index 94f7abc..b178481 100644 --- a/deps/npm/html/doc/README.html +++ b/deps/npm/html/doc/README.html @@ -239,7 +239,7 @@ will no doubt tell you to put the output in a gist or email.

- +