From d70c01970311f4e84b35eef8559c114136a9ebc7 Mon Sep 17 00:00:00 2001 From: Matt Hoyle Date: Thu, 8 Mar 2018 19:49:49 +0000 Subject: [PATCH] unsupported: Remove ES6 code from unsupported error logging (#18953) npm throws an error on old node versions that don's support template strings rather than reporting the unsupported information. PR-URL: https://github.com/npm/npm/pull/18953 Credit: @deployable Reviewed-By: @zkat --- lib/utils/unsupported.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/unsupported.js b/lib/utils/unsupported.js index b3a8a9b33ae..15fa7396d00 100644 --- a/lib/utils/unsupported.js +++ b/lib/utils/unsupported.js @@ -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) }