summaryrefslogtreecommitdiff
path: root/deps/npm/html/doc/cli/npm-run-script.html
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/html/doc/cli/npm-run-script.html')
-rw-r--r--deps/npm/html/doc/cli/npm-run-script.html9
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>&quot;scripts&quot;: {&quot;test&quot;: &quot;tap test/\*.js&quot;}
</code></pre><p>instead of <code>&quot;scripts&quot;: {&quot;test&quot;: &quot;node_modules/.bin/tap test/\*.js&quot;}</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&#39;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&#3
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
</table>
-<p id="footer">npm-run-script &mdash; npm@3.10.10</p>
+<p id="footer">npm-run-script &mdash; npm@4.0.5</p>