Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update message for newer node version #684

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lib/utils/unsupported.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand All @@ -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.')
}
}