← 输入框|github.com|刷新
Skip to content

Prebuilt Binaries for node 22 #2015

Open

Description

@rcolfin

When can we get prebuilt binaries for Node 22?

Activity

  1. punkpeye commented on Mar 11, 2025

    @punkpeye

    I am not even able to make it work with v22. The build is failing.

  2. rcolfin commented on Mar 12, 2025

    @rcolfin
    Author

    What's the build failure?

  3. serggl commented on Apr 3, 2025

    @serggl
    Contributor

    @zawata can you please trigger prebuild automation for Electron 35 / Node 22 🙏🏽 ?

  4. tommitytom commented on Jun 9, 2025

    @tommitytom

    @rcolfin Build is failing for me with:

    # This file contains the result of Yarn building a package (nodegit@npm:0.27.0)
    # Script name: install
    
    [nodegit] Running pre-install script
    [nodegit] Running install script
    [nodegit] ERROR - Could not finish install
    [nodegit] ERROR - finished with error code: Error: spawn EINVAL
    node:internal/bootstrap/node:123
            validateInteger(value, 'code');
            ^
    
    TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of Error
        at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
        at process.exit (node:internal/process/per_thread:178:24)
        at C:\projects\code\architect\node_modules\nodegit\lifecycleScripts\install.js:60:15
        at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
      code: 'ERR_INVALID_ARG_TYPE'
    }
    
    Node.js v22.11.0
    
  5. rcolfin commented on Jun 12, 2025

    @rcolfin
    Author

    @rcolfin Build is failing for me with:

    # This file contains the result of Yarn building a package (nodegit@npm:0.27.0)
    # Script name: install
    
    [nodegit] Running pre-install script
    [nodegit] Running install script
    [nodegit] ERROR - Could not finish install
    [nodegit] ERROR - finished with error code: Error: spawn EINVAL
    node:internal/bootstrap/node:123
            validateInteger(value, 'code');
            ^
    
    TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of Error
        at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
        at process.exit (node:internal/process/per_thread:178:24)
        at C:\projects\code\architect\node_modules\nodegit\lifecycleScripts\install.js:60:15
        at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
      code: 'ERR_INVALID_ARG_TYPE'
    }
    
    Node.js v22.11.0
    

    Are you using NodeGit 0.27.0? If you're using a newer verison of Node and on Windows, then install.js is missing c12c5a4 commit; essentially missing the shell: process.platform === "win32" line. See also: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2

  6. llimllib commented on Sep 2, 2025

    @llimllib
    Contributor

    I get the same errors as #2023 on mac with node v22.18.0, repro steps:

    mkdir /tmp/nodegit
    cd /tmp/nodegit
    npm init -y
    npm add --save nodegit
  7. llimllib commented on Nov 7, 2025

    @llimllib
    Contributor

    fwiw, current master builds for me - you may want to try it

  8. louwers commented on Nov 27, 2025

    @louwers

    Builds fine on macOS, Node.js 25.

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