diff options
Diffstat (limited to 'deps/npm/html/doc/cli/npm-run-script.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-run-script.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/npm/html/doc/cli/npm-run-script.html b/deps/npm/html/doc/cli/npm-run-script.html index b090a308ab..d22c8a7533 100644 --- a/deps/npm/html/doc/cli/npm-run-script.html +++ b/deps/npm/html/doc/cli/npm-run-script.html @@ -38,6 +38,9 @@ prefix. For example, if there is a <code>devDependency</code> on <code>tap</code you should write:</p> <pre><code>"scripts": {"test": "tap test/\*.js"} </code></pre><p>instead of <code>"scripts": {"test": "node_modules/.bin/tap test/\*.js"}</code> to run your tests.</p> +<p><code>npm run</code> sets the <code>NODE</code> environment variable to the <code>node</code> executable with +which <code>npm</code> is executed, and adds the directory within which it resides to the +<code>PATH</code>, too.</p> <p>If you try to run a script without having a <code>node_modules</code> directory and it fails, you will be given a warning to run <code>npm install</code>, just in case you've forgotten.</p> <h2 id="see-also">SEE ALSO</h2> @@ -60,5 +63,5 @@ you will be given a warning to run <code>npm install</code>, just in case you <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr> </table> -<p id="footer">npm-run-script — npm@3.8.6</p> +<p id="footer">npm-run-script — npm@3.8.9</p> |