Skip to content

macOS: "env: node: No such file or directory" when launching from Applications #88

@Dalimpolos29

Description

@Dalimpolos29

Bug Description

When launching Claudia from the Applications folder (by double-clicking), it fails with the error:

env: node: No such file or directory

However, the app works correctly when launched from Terminal.

Environment

  • OS: macOS [your version]
  • Claudia Version: 0.1.0
  • Node Version: v22.17.0 (installed at /usr/local/bin/node)
  • Claude Code Version: 1.0.35

Steps to Reproduce

  1. Build Claudia from source following the README
  2. Install the .dmg file
  3. Drag Claudia to Applications folder
  4. Double-click Claudia in Applications
  5. See error: "env: node: No such file or directory"

Expected Behavior

Claudia should launch normally when opened from Applications, just like other macOS apps.

Actual Behavior

The app fails to find Node.js in the PATH when launched from GUI.

Workaround

The app works when launched from Terminal:

/Applications/Claudia.app/Contents/MacOS/Claudia


Possible Solution
The app needs to properly inherit or set the PATH environment variable when launched from the GUI. This is a common issue with Electron/Tauri apps on macOS where GUI apps don't inherit the shell PATH.
Consider using fix-path or similar solutions that other Electron apps use for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions