From f91f39cf7fa3477b6a62a89e8d0ee96465eac27c Mon Sep 17 00:00:00 2001 From: RaspberryPiFan <49343974+RaspberryPiFan@users.noreply.github.com> Date: Sun, 12 Jan 2020 20:55:00 +0000 Subject: [PATCH 1/2] Update message for newer node version --- lib/utils/unsupported.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/utils/unsupported.js b/lib/utils/unsupported.js index 71a304030e242..1140d4743da51 100644 --- a/lib/utils/unsupported.js +++ b/lib/utils/unsupported.js @@ -33,9 +33,9 @@ exports.checkForBrokenNode = function () { } }) var supportedMajors = supportedNode.map(function (n) { return n.ver }).join(', ') - console.error("You'll need to upgrade to a newer version in order to use this") - console.error('version of npm. Supported versions are ' + supportedMajors + '. You can find the') - console.error('latest version at https://nodejs.org/') + console.error("You'll need to upgrade to another version in order to use this") + console.error('version of npm. Supported versions are ' + supportedMajors + '. You can find') + console.error('another version at https://nodejs.org/') process.exit(1) } } @@ -46,7 +46,7 @@ exports.checkForUnsupportedNode = function () { var log = require('npmlog') var supportedMajors = supportedNode.map(function (n) { return n.ver }).join(', ') log.warn('npm', 'npm does not support Node.js ' + process.version) - log.warn('npm', 'You should probably upgrade to a newer version of node as we') + log.warn('npm', 'You should probably upgrade to another version of node as we') log.warn('npm', "can't make any promises that npm will work with this version.") log.warn('npm', 'Supported releases of Node.js are the latest release of ' + supportedMajors + '.') log.warn('npm', 'You can find the latest version at https://nodejs.org/') From 6403320ff5947e5e88c44f86b1416927c4f58724 Mon Sep 17 00:00:00 2001 From: RaspberryPiFan <49343974+RaspberryPiFan@users.noreply.github.com> Date: Tue, 14 Jan 2020 15:48:20 +0100 Subject: [PATCH 2/2] Update message --- lib/utils/unsupported.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/unsupported.js b/lib/utils/unsupported.js index 1140d4743da51..ba53ffff0e01e 100644 --- a/lib/utils/unsupported.js +++ b/lib/utils/unsupported.js @@ -50,5 +50,7 @@ exports.checkForUnsupportedNode = function () { log.warn('npm', "can't make any promises that npm will work with this version.") log.warn('npm', 'Supported releases of Node.js are the latest release of ' + supportedMajors + '.') log.warn('npm', 'You can find the latest version at https://nodejs.org/') + log.warn('npm', 'Maybe your version of npm is too old. Run "npm -g npm" and run an npm command again.') + log.warn('npm', 'If this error stays, Node.js is too old. If it\'s to new, wait for an update.') } }