diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-03-13 02:07:27 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-03-15 21:41:52 -0400 |
commit | 7d0baf174155195bcc93ec63716118a3696095d7 (patch) | |
tree | 7964cba8d07b6f0954e43497a4d40a9b5a4de814 /deps/npm/doc | |
parent | 4eb8810a27a710bcfdf15fc03fbb22a65e655aff (diff) | |
download | node-new-7d0baf174155195bcc93ec63716118a3696095d7.tar.gz |
deps: upgrade npm to 2.7.1
PR-URL: https://github.com/iojs/io.js/pull/1142
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'deps/npm/doc')
-rw-r--r-- | deps/npm/doc/cli/npm-install.md | 2 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-link.md | 3 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-run-script.md | 7 |
3 files changed, 10 insertions, 2 deletions
diff --git a/deps/npm/doc/cli/npm-install.md b/deps/npm/doc/cli/npm-install.md index 6b2ac7778c..acc221d31f 100644 --- a/deps/npm/doc/cli/npm-install.md +++ b/deps/npm/doc/cli/npm-install.md @@ -157,7 +157,7 @@ after packing it up into a tarball (b). * `npm install <githubname>/<githubrepo>`: - Install the package at `https://github.com/githubname/githubrepo" by + Install the package at `https://github.com/githubname/githubrepo` by attempting to clone it using `git`. Example: diff --git a/deps/npm/doc/cli/npm-link.md b/deps/npm/doc/cli/npm-link.md index a48fb97785..d634e3458c 100644 --- a/deps/npm/doc/cli/npm-link.md +++ b/deps/npm/doc/cli/npm-link.md @@ -38,7 +38,8 @@ For example: npm link redis # link-install the package Now, any changes to ~/projects/node-redis will be reflected in -~/projects/node-bloggy/node_modules/node-redis/ +~/projects/node-bloggy/node_modules/node-redis/. Note that the link should +be to the package name, not the directory name for that package. You may also shortcut the two steps in one. For example, to do the above use-case in a shorter way: diff --git a/deps/npm/doc/cli/npm-run-script.md b/deps/npm/doc/cli/npm-run-script.md index 9e6e17e1d0..487bd5942a 100644 --- a/deps/npm/doc/cli/npm-run-script.md +++ b/deps/npm/doc/cli/npm-run-script.md @@ -29,6 +29,13 @@ environment variables that will be available to the script at runtime. If an "env" command is defined in your package it will take precedence over the built-in. +In addition to the shell's pre-existing `PATH`, `npm run` adds +`node_modules/.bin` to the `PATH` provided to scripts. Any binaries provided by +locally-installed dependencies can be used without the `node_modules/.bin` +prefix. For example, if there is a `devDependency` on `tap` in your package, +you should write `"scripts": {"test": "tap test/\*.js"}` instead of `"scripts": +{"test": "node_modules/.bin/tap test/\*.js"}` to run your tests. + ## SEE ALSO * npm-scripts(7) |