diff options
Diffstat (limited to 'deps/npm/doc/cli/npm-run-script.md')
-rw-r--r-- | deps/npm/doc/cli/npm-run-script.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/doc/cli/npm-run-script.md b/deps/npm/doc/cli/npm-run-script.md index b8da1f09f3..43fa58e5d8 100644 --- a/deps/npm/doc/cli/npm-run-script.md +++ b/deps/npm/doc/cli/npm-run-script.md @@ -40,6 +40,10 @@ you should write: instead of `"scripts": {"test": "node_modules/.bin/tap test/\*.js"}` to run your tests. +`npm run` sets the `NODE` environment variable to the `node` executable with +which `npm` is executed, and adds the directory within which it resides to the +`PATH`, too. + If you try to run a script without having a `node_modules` directory and it fails, you will be given a warning to run `npm install`, just in case you've forgotten. |