Skip to content

Update to semver ≥ 7 #2005

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions