diff --git a/lib/utils/unsupported.js b/lib/utils/unsupported.js index 71a304030e242..ba53ffff0e01e 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,9 +46,11 @@ 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/') + 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.') } }