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
// The colors module should not be assigned to variable because the lint task will fail for not used variable.
14
14
require("colors");
15
15
letnodeVer=process.version.substr(1);
16
16
17
17
if(versionsCausingFailure.indexOf(nodeVer)!==-1){
18
-
console.error(`${EOL}Node.js '${nodeVer}' is not supported. To be able to work with this CLI, install any Node.js version in the following range: ${supportedVersionsRange}.${EOL}`.red.bold);
18
+
console.error(`${EOL}Node.js '${nodeVer}' is not supported. To be able to work with ${cliName} CLI, install any Node.js version in the following range: ${supportedVersionsRange}.${EOL}`.red.bold);
19
19
process.exit(1);
20
20
}
21
21
22
22
if(semver.satisfies(nodeVer,"~0.10.0")){
23
-
console.warn(`${EOL}Support for Node.js 0.10.x is deprecated and it will be removed in the next release. Please upgrade to latest Node.js LTS version.${EOL}`.yellow.bold);
23
+
console.warn(`${EOL}Support for Node.js 0.10.x is deprecated and will be removed in the ${cliName}${deprecationVersion}release. Please, upgrade to the latest Node.js LTS version.${EOL}`.yellow.bold);
0 commit comments