Skip to content

Conversation

movax01h
Copy link

@movax01h movax01h commented Jun 28, 2025

Problem

  • Limited PATH support for Node.js tools on macOS GUI applications

Solution

  • Enhanced PATH to include common Node.js installation locations:
    • Homebrew paths (/opt/homebrew/bin, /usr/local/bin)
    • User-specific paths (.local/bin, .npm-global/bin, .bun/bin, .cargo/bin)
  • Improved NVM support by consolidating PATH enhancement logic
  • Added proper error handling and debug logging

Testing

  • Code compiles without errors
  • PATH enhancement logic works for various Node.js installation methods
  • Maintains backward compatibility

This is crucial for GUI apps on macOS which have restricted PATH environments and may not find Node.js installations.

- Enhanced PATH to include common Node.js installation locations on macOS
- Added support for Homebrew, user-specific paths (.local, .npm-global, .bun, .cargo)
- Fixed Rust lifetime compilation errors by changing Vec<&str> to Vec<String>
- Improved NVM support by consolidating PATH enhancement logic
- Crucial for GUI apps on macOS which have restricted PATH environments
@movax01h movax01h changed the title fix: enhance PATH support for Node.js tools and fix Rust lifetime issues fix: enhance PATH support for Node.js tools Jun 28, 2025
@movax01h movax01h closed this Jun 28, 2025
@movax01h
Copy link
Author

reopen pr from feature branch

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.

1 participant