You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/cli/validate-engines.js
-2
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,8 @@ const npm = `v${version}`
11
11
module.exports=(process,getCli)=>{
12
12
constnode=process.version
13
13
14
-
/* eslint-disable-next-line max-len */
15
14
constunsupportedMessage=`npm ${npm} does not support Node.js ${node}. This version of npm supports the following node versions: \`${engines}\`. You can find the latest version at https://nodejs.org/.`
16
15
17
-
/* eslint-disable-next-line max-len */
18
16
constbrokenMessage=`ERROR: npm ${npm} is known not to run on Node.js ${node}. This version of npm supports the following node versions: \`${engines}\`. You can find the latest version at https://nodejs.org/.`
19
17
20
18
// coverage ignored because this is only hit in very unsupported node versions
thrownewError(`Cannot implicitly apply the "latest" tag because published version ${latestVersion} is higher than the new version ${manifest.version}. You must specify a tag using --tag.`)
166
164
}
167
165
@@ -238,7 +236,6 @@ class Publish extends BaseCommand {
@@ -83,7 +82,10 @@ class TextOutputStream extends Minipass {
83
82
constructor(opts){
84
83
super()
85
84
// Consider a search for "cowboys" and "boy". If we highlight "boys" first the "cowboys" string will no longer string match because of the ansi highlighting added to "boys". If we highlight "boy" second then the ansi reset at the end will make the highlighting only on "cowboy" with a normal "s". Neither is perfect but at least the first option doesn't do partial highlighting. So, we sort strings smaller to larger
Copy file name to clipboardexpand all lines: test/lib/cli/validate-engines.js
-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,6 @@ t.test('validate engines', async t => {
23
23
node: 'v4.5.6',
24
24
npm: 'v1.2.3',
25
25
engines: '>=0',
26
-
/* eslint-disable-next-line max-len */
27
26
unsupportedMessage: 'npm v1.2.3 does not support Node.js v4.5.6. This version of npm supports the following node versions: `>=0`. You can find the latest version at https://nodejs.org/.',
0 commit comments