Skip to content

fix: enhance PATH support for Node.js tools#60

Closed
movax01h wants to merge 1 commit intowinfunc:mainfrom
movax01h:main
Closed

fix: enhance PATH support for Node.js tools#60
movax01h wants to merge 1 commit intowinfunc:mainfrom
movax01h:main

Conversation

@movax01h
Copy link
Copy Markdown

@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
Copy Markdown
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.

2 participants