Skip to content

build(macos): fix packaging .dmg on macOS on Node,js 24+ by manually updating nan from 2.22.0 to 2.28.0#1802

Merged
ShGKme merged 1 commit into
mainfrom
chore/bump-nan
Jul 9, 2026
Merged

build(macos): fix packaging .dmg on macOS on Node,js 24+ by manually updating nan from 2.22.0 to 2.28.0#1802
ShGKme merged 1 commit into
mainfrom
chore/bump-nan

Conversation

@ShGKme

@ShGKme ShGKme commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

☑️ Resolves

  • build(deps-dev): update nan 2.22.0 -> 2.28.0 in the lock file
  • nan is a transitive dependency used during macOS .dmg packaging
    • nan -> macos-alias -> appdmg -> electron-installed-dmg -> @electron-forge/maker-dmg
  • v2.22.0 is not compatible with Node.js 23+
    • We are using Node 24
  • It crashes during the build if it was installed on 22 but used on 24
  • It is not installed on 24 at all (because this is an optional macOS-only dependency, it's just skipped)
  • Bumping nan in the lock file allows installing and build from source these dependencies on Node 24

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme requested a review from Antreesy July 9, 2026 12:04
@ShGKme ShGKme self-assigned this Jul 9, 2026
@ShGKme ShGKme added os: macOS 🍎 distribution 📦 Building, packaging, publishing labels Jul 9, 2026
@ShGKme ShGKme enabled auto-merge July 9, 2026 12:08
@ShGKme ShGKme merged commit ae24fa8 into main Jul 9, 2026
11 checks passed
@ShGKme ShGKme deleted the chore/bump-nan branch July 9, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distribution 📦 Building, packaging, publishing os: macOS 🍎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants