Skip to content

Forge fails to package on Node.js 24.16 and 26 #4277

Closed

Description

@long76

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Forge version

7.11.2

Electron version

42.3.0

Operating system

Kubuntu 24.04

Last known working Forge version

No response

Expected behavior

package success and out folder not empty

Actual behavior

forever package and out folder empty

Image

Steps to reproduce

  1. clone https://github.com/long76/build_bug
  2. install nodejs 24.16.0
  3. npm install
  4. npm run dist

Additional information

on 24.15.0 all ok

Activity

  1. added theissue type on May 27, 2026
  2. erickzhao commented on May 27, 2026

    @erickzhao
    Member

    See electron/electron#51619, extract-zip > yauzl@2 is broken on Node 24.16. Setting a manual resolution/override for yauzl@3.3.1 via your package manager will fix it.

    In the meantime, we're planning on replacing extract-zip with a new internal lib to avoid this issue going forward.

    Thank you for the report!

  3. changed the title [-]forever package on nodejs 24.16.0[/-] [+]Forge fails to package on Node.js 24.16 and 26[/+] on May 27, 2026
  4. pinned this issue on May 27, 2026
  5. long76 commented on May 27, 2026

    @long76
    Author

    See electron/electron#51619, extract-zip > yauzl@2 is broken on Node 24.16. Setting a manual resolution/override for yauzl@3.3.1 via your package manager will fix it.

    In the meantime, we're planning on replacing extract-zip with a new internal lib to avoid this issue going forward.

    Thank you for the report!

    i see, thanks!

  6. self-assigned this
    on Jun 5, 2026
  7. Huaian666 commented on Jun 6, 2026

    @Huaian666
  8. 18 remaining items

  9. added a commit that references this issue on Aug 7, 2026
  10. ronggang commented on Sep 18, 2026

    @ronggang

    I'm experiencing the same issue on Node.js v26.7.0, but it works fine on v25.9.0.

  11. added a commit that references this issue on Sep 18, 2026
  12. create3000 commented on Sep 21, 2026

    @create3000

    The same on Windows. Tried node v26.9.0 to package my project, no luck. Switched back to node v24.21.0 and all things work again.

  13. long76 commented on Sep 21, 2026

    @long76
    Author

    @ronggang @create3000 try

    npm i @electron-forge/cli@8.0.0-alpha.10
    
  14. erickzhao commented on Sep 21, 2026

    @erickzhao
    Member

    I'm prepping the first Forge v8 stable release for this week. Stay tuned!

  15. long76 commented on Oct 12, 2026

    @long76
    Author

    8.0.1 was released, all works for me. feel free to reopen

  16. added a commit that references this issue on Oct 18, 2026
  17. long76 commented on Nov 5, 2026

    @long76
    Author

    8.0.1 was released, all works for me. feel free to reopen

    on node v26.13.0 works too

    "devDependencies": {
        "@electron-forge/cli": "^8.0.1"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions