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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/npm/html/doc/cli/npm-run-script.html b/deps/npm/html/doc/cli/npm-run-script.html index 27fcfc9345..d68504647a 100644 --- a/deps/npm/html/doc/cli/npm-run-script.html +++ b/deps/npm/html/doc/cli/npm-run-script.html @@ -39,8 +39,11 @@ 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. Also, the directory within which it resides is added to the -<code>PATH</code>, if the <code>node</code> executable is not in the <code>PATH</code>.</p> +which <code>npm</code> is executed. Also, if the <code>--scripts-prepend-node-path</code> is passed, +the directory within which <code>node</code> resides is added to the +<code>PATH</code>. If <code>--scripts-prepend-node-path=auto</code> is passed (which has been the +default in <code>npm</code> v3), this is only performed when that <code>node</code> executable is +not found in the <code>PATH</code>.</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> @@ -63,5 +66,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.10.10</p> +<p id="footer">npm-run-script — npm@4.0.5</p> |