Skip to content

Commit

Permalink
unsupported: Remove ES6 code from unsupported error logging (npm#18953)
Browse files Browse the repository at this point in the history
npm throws an error on old node versions that don's support template strings rather than reporting the unsupported information.

PR-URL: npm#18953
Credit: @deployable
Reviewed-By: @zkat
  • Loading branch information
deployable authored and zkat committed Mar 8, 2018
1 parent 35c4abd commit d70c019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/unsupported.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.checkForBrokenNode = function () {
supportedNode.forEach(function (rel) {
if (semver.satisfies(nodejs.version, rel.ver)) {
console.error('Node.js ' + rel.ver + " is supported but the specific version you're running has")
console.error(`a bug known to break npm. Please update to at least ${rel.min} to use this`)
console.error('a bug known to break npm. Please update to at least ' + rel.min + ' to use this')
console.error('version of npm. You can find the latest release of Node.js at https://nodejs.org/')
process.exit(1)
}
Expand Down

0 comments on commit d70c019

Please sign in to comment.