diff --git a/lib/find-python.js b/lib/find-python.js index 9d918a881b..43bf85985a 100644 --- a/lib/find-python.js +++ b/lib/find-python.js @@ -226,7 +226,7 @@ PythonFinder.prototype = { } this.addLog(`- version is "${version}"`) - const range = semver.Range(this.semverRange) + const range = new semver.Range(this.semverRange) var valid = false try { valid = range.test(version) diff --git a/package.json b/package.json index 243738506d..5f521435f9 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "npmlog": "^4.1.2", "request": "^2.88.0", "rimraf": "^2.6.3", - "semver": "^5.7.1", + "semver": "^7.1.1", "tar": "^4.4.12", "which": "^1.3.1" },