- Move determineNodePathForCli function to dedicated cliPathDetector.ts file
- Enhance error handling with specific guidance for permission issues
- Add detailed error messages for different failure scenarios
- Improve logging for debugging CLI path detection issues
This change improves the reliability of CLI path detection by providing better error messages and handling edge cases more gracefully.