Skip to content

Conversation

@aryateja2106
Copy link

When trying to run the application on my MacBook, I encountered issues with node-pty native bindings. The app needed the electron-rebuild command to properly rebuild native modules for the local Electron version.

This PR adds npx electron-rebuild -f -w node-pty to the start script to ensure the application starts properly on macOS systems without manual intervention.

Changes

  • Modified package.json start script to include npx electron-rebuild -f -w node-pty before launching Electron
  • This ensures node-pty native bindings are rebuilt for the correct Electron version on macOS

Testing

Tested on macOS and confirmed the application now starts successfully without manual rebuild steps.

When running the application on macOS, node-pty native bindings need to be rebuilt for the local Electron version. Added 'npx electron-rebuild -f -w node-pty' to the start script to ensure the application starts properly on macOS systems.
@built-by-as
Copy link
Owner

Perhaps we could just do a rebuild for all modules instead of just node-pty? WDYT?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants