Skip to content

Commit 1c03191

Browse files
zkatMyles Borins
authored andcommitted
test: make npm tests work on prerelease node versions
PR-URL: #4872 Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rebecca Turner <me@re-becca.org>
1 parent 38b370a commit 1c03191

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

deps/npm/html/doc/cli/npm.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ <h2 id="contributions">CONTRIBUTIONS</h2>
110110
the issues list or ask on the mailing list.</p>
111111
<ul>
112112
<li><a href="https://github.com/npm/npm/issues">https://github.com/npm/npm/issues</a></li>
113-
<li><a href="&#x6d;&#97;&#x69;&#108;&#x74;&#x6f;&#58;&#x6e;&#x70;&#x6d;&#x2d;&#x40;&#103;&#111;&#x6f;&#x67;&#108;&#x65;&#103;&#x72;&#x6f;&#117;&#x70;&#x73;&#x2e;&#99;&#111;&#x6d;">&#x6e;&#x70;&#x6d;&#x2d;&#x40;&#103;&#111;&#x6f;&#x67;&#108;&#x65;&#103;&#x72;&#x6f;&#117;&#x70;&#x73;&#x2e;&#99;&#111;&#x6d;</a></li>
113+
<li><a href="&#x6d;&#97;&#105;&#x6c;&#116;&#111;&#58;&#110;&#x70;&#x6d;&#45;&#64;&#x67;&#x6f;&#111;&#x67;&#x6c;&#101;&#x67;&#x72;&#x6f;&#x75;&#x70;&#115;&#x2e;&#x63;&#111;&#x6d;">&#110;&#x70;&#x6d;&#45;&#64;&#x67;&#x6f;&#111;&#x67;&#x6c;&#101;&#x67;&#x72;&#x6f;&#x75;&#x70;&#115;&#x2e;&#x63;&#111;&#x6d;</a></li>
114114
</ul>
115115
<h2 id="bugs">BUGS</h2>
116116
<p>When you find issues, please report them:</p>
117117
<ul>
118118
<li>web:
119119
<a href="https://github.com/npm/npm/issues">https://github.com/npm/npm/issues</a></li>
120120
<li>email:
121-
<a href="&#x6d;&#x61;&#105;&#x6c;&#x74;&#111;&#x3a;&#110;&#x70;&#109;&#45;&#64;&#103;&#111;&#x6f;&#103;&#108;&#101;&#x67;&#114;&#111;&#x75;&#112;&#115;&#x2e;&#99;&#111;&#109;">&#110;&#x70;&#109;&#45;&#64;&#103;&#111;&#x6f;&#103;&#108;&#101;&#x67;&#114;&#111;&#x75;&#112;&#115;&#x2e;&#99;&#111;&#109;</a></li>
121+
<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#x3a;&#x6e;&#112;&#109;&#45;&#64;&#103;&#111;&#x6f;&#x67;&#108;&#101;&#103;&#x72;&#x6f;&#117;&#x70;&#x73;&#x2e;&#x63;&#111;&#109;">&#x6e;&#112;&#109;&#45;&#64;&#103;&#111;&#x6f;&#x67;&#108;&#101;&#103;&#x72;&#x6f;&#117;&#x70;&#x73;&#x2e;&#x63;&#111;&#109;</a></li>
122122
</ul>
123123
<p>Be sure to include <em>all</em> of the output from the npm command that didn&#39;t work
124124
as expected. The <code>npm-debug.log</code> file is also helpful to provide.</p>
@@ -128,7 +128,7 @@ <h2 id="author">AUTHOR</h2>
128128
<p><a href="http://blog.izs.me/">Isaac Z. Schlueter</a> ::
129129
<a href="https://github.com/isaacs/">isaacs</a> ::
130130
<a href="http://twitter.com/izs">@izs</a> ::
131-
<a href="&#x6d;&#x61;&#x69;&#108;&#x74;&#111;&#x3a;&#x69;&#64;&#105;&#x7a;&#115;&#x2e;&#109;&#101;">&#x69;&#64;&#105;&#x7a;&#115;&#x2e;&#109;&#101;</a></p>
131+
<a href="&#109;&#x61;&#x69;&#108;&#116;&#x6f;&#x3a;&#x69;&#x40;&#105;&#122;&#x73;&#46;&#x6d;&#101;">&#x69;&#x40;&#105;&#122;&#x73;&#46;&#x6d;&#101;</a></p>
132132
<h2 id="see-also">SEE ALSO</h2>
133133
<ul>
134134
<li><a href="../cli/npm-help.html">npm-help(1)</a></li>

deps/npm/html/doc/misc/npm-disputes.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1><a href="../misc/npm-disputes.html">npm-disputes</a></h1> <p>Handling Module
1313
<h2 id="synopsis">SYNOPSIS</h2>
1414
<ol>
1515
<li>Get the author email with <code>npm owner ls &lt;pkgname&gt;</code></li>
16-
<li>Email the author, CC <a href="&#109;&#97;&#x69;&#108;&#x74;&#111;&#58;&#x73;&#117;&#x70;&#x70;&#111;&#x72;&#x74;&#64;&#x6e;&#112;&#x6d;&#106;&#x73;&#x2e;&#99;&#x6f;&#x6d;">&#x73;&#117;&#x70;&#x70;&#111;&#x72;&#x74;&#64;&#x6e;&#112;&#x6d;&#106;&#x73;&#x2e;&#99;&#x6f;&#x6d;</a></li>
16+
<li>Email the author, CC <a href="&#109;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#58;&#115;&#x75;&#112;&#112;&#111;&#x72;&#116;&#64;&#x6e;&#x70;&#109;&#x6a;&#115;&#46;&#99;&#x6f;&#109;">&#115;&#x75;&#112;&#112;&#111;&#x72;&#116;&#64;&#x6e;&#x70;&#109;&#x6a;&#115;&#46;&#99;&#x6f;&#109;</a></li>
1717
<li>After a few weeks, if there&#39;s no resolution, we&#39;ll sort it out.</li>
1818
</ol>
1919
<p>Don&#39;t squat on package names. Publish code or move out of the way.</p>
@@ -51,12 +51,12 @@ <h2 id="description">DESCRIPTION</h2>
5151
owner (Bob).</li>
5252
<li>Joe emails Bob, explaining the situation <strong>as respectfully as
5353
possible</strong>, and what he would like to do with the module name. He
54-
adds the npm support staff <a href="&#109;&#x61;&#105;&#x6c;&#116;&#111;&#x3a;&#x73;&#x75;&#112;&#112;&#111;&#114;&#116;&#x40;&#x6e;&#112;&#109;&#x6a;&#115;&#46;&#x63;&#x6f;&#x6d;">&#x73;&#x75;&#112;&#112;&#111;&#114;&#116;&#x40;&#x6e;&#112;&#109;&#x6a;&#115;&#46;&#x63;&#x6f;&#x6d;</a> to the CC list of
54+
adds the npm support staff <a href="&#109;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x73;&#x75;&#x70;&#112;&#111;&#x72;&#116;&#64;&#110;&#112;&#x6d;&#x6a;&#x73;&#x2e;&#x63;&#x6f;&#109;">&#x73;&#x75;&#x70;&#112;&#111;&#x72;&#116;&#64;&#110;&#112;&#x6d;&#x6a;&#x73;&#x2e;&#x63;&#x6f;&#109;</a> to the CC list of
5555
the email. Mention in the email that Bob can run <code>npm owner add
5656
joe foo</code> to add Joe as an owner of the <code>foo</code> package.</li>
5757
<li>After a reasonable amount of time, if Bob has not responded, or if
5858
Bob and Joe can&#39;t come to any sort of resolution, email support
59-
<a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#111;&#58;&#115;&#x75;&#112;&#x70;&#x6f;&#x72;&#x74;&#64;&#x6e;&#x70;&#109;&#x6a;&#115;&#x2e;&#x63;&#111;&#x6d;">&#115;&#x75;&#112;&#x70;&#x6f;&#x72;&#x74;&#64;&#x6e;&#x70;&#109;&#x6a;&#115;&#x2e;&#x63;&#111;&#x6d;</a> and we&#39;ll sort it out. (&quot;Reasonable&quot; is
59+
<a href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;&#58;&#x73;&#117;&#x70;&#112;&#111;&#x72;&#116;&#64;&#x6e;&#112;&#109;&#106;&#x73;&#x2e;&#99;&#x6f;&#x6d;">&#x73;&#117;&#x70;&#112;&#111;&#x72;&#116;&#64;&#x6e;&#112;&#109;&#106;&#x73;&#x2e;&#99;&#x6f;&#x6d;</a> and we&#39;ll sort it out. (&quot;Reasonable&quot; is
6060
usually at least 4 weeks, but extra time is allowed around common
6161
holidays.)</li>
6262
</ol>

deps/npm/test/common-tap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ process.env.npm_config_cache = exports.npm_config_cache = npm_config_cache
1818
process.env.npm_config_userconfig = exports.npm_config_userconfig = path.join(__dirname, 'fixtures', 'config', 'userconfig')
1919
process.env.npm_config_globalconfig = exports.npm_config_globalconfig = path.join(__dirname, 'fixtures', 'config', 'globalconfig')
2020
process.env.random_env_var = 'foo'
21+
// suppress warnings about using a prerelease version of node
22+
process.env.npm_config_node_version = process.version.replace(/-.*$/, '')
2123

2224
var bin = exports.bin = require.resolve('../bin/npm-cli.js')
2325
var chain = require('slide').chain

0 commit comments

Comments
 (0)