Skip to content

Update to semver ≥ 7 #2005

@guimard

Description

@guimard
  • Node Version: 10.17.0
  • Platform: Linux/Debian
  • Compiler: gcc 9
  • Module:

node-gyp is not compatible with semver ≥ 7. I found this little fix that seems to fix the problem:

--- a/lib/find-python.js
+++ b/lib/find-python.js
@@ -226,7 +226,7 @@
       }
       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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions