Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Update dependencies: node-gyp stills using v6 it is currently in v8 #286

Closed

Description

@augustnmonteiro
No description provided.

Activity

  1. added
    pull request welcome
    semver-major
    on Jan 14, 2022
  2. zdm commented on Feb 23, 2022

    @zdm

    When you will update dependencies?
    It NOT works with visual studio 2022 on github actions.

  3. zdm commented on Feb 23, 2022

    @zdm

    All you need to do is to change "node-gyp": "^6.0.1" to "node-gyp": "^8.0.0" in package.json.
    API interface not changed and it just works.

  4. vweevers commented on Feb 23, 2022

    @vweevers
    Member

    Two separate PRs are welcome:

    1. Replace Travis (and Appveyor) with a GitHub Actions workflow, because our CI is currently broken and we'd like to test all of this. Also replace the badges in the README.
    2. Bump node-gyp, and also:
      • Go over the programmatic internals of node-gyp that we use here, which are not expected to be documented in the changelog of node-gyp
      • Update engines.node in package.json according to the minimum version supported by node-gyp
      • Update the Node.js version matrix in the GItHub Actions workflow. We may want to drop Node.js 10 at this time.
  5. verhovsky commented on Mar 8, 2023

    @verhovsky

    node-gyp 6 doesn't work with Python 3.11 nodejs/node-gyp#2219 and throws this error if you try to build something for Electron 20+: #error "It looks like you are building this native module without using the right config.gypi. This normally means that you need to update electron-rebuild (>=3.2.8) or node-gyp (>=8.4.0) if you're building modules directly."

    I was able update the node-gyp version that prebuild uses in my project by running

    npm install --save-dev node-gyp

    then adding this to my package.json

      "overrides": {
        "prebuild": {
          "node-gyp": "$node-gyp"
        }
      },

    You might also have to add

      'variables': {
        'openssl_fips': '',
      },

    to your binding.gyp.

    overrides is available starting with npm 8.3, which was released with Node 16.

  6. lovell commented on Jul 9, 2023

    @lovell
    Member

    PR for part 2 at #304

  7. lovell commented on Sep 6, 2023

    @lovell
    Member

    prebuild v12.0.0 now available with dependency on node-gyp v9.4.0

    "node-gyp": "^9.4.0",

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

    pull request welcomesemver-major

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions