Skip to content

Global installation fails to create bin/claude executable #163

@Alhumsiabdo

Description

@Alhumsiabdo

Laravel Package Version

N/A (Global Installation)

Laravel Version

N/A (Global Installation)

PHP Version

8.3.6

System Info

  • OS: Linux (Ubuntu) - Composer version: 2.7.1 - Installation type: Global

Description

When installing laravel/boost globally using composer global require laravel/boost, the installation process completes without any visible errors. However, the package is only partially installed.

Through troubleshooting, we've discovered the following:

  • The main package directory is created successfully at ~/.config/composer/vendor/laravel/boost/.
  • However, the executable script that should be inside it (bin/claude) is not created.
  • Consequently, the symlink in the global bin directory (~/.config/composer/vendor/bin/claude) is also not created.

Running php ~/.config/composer/vendor/laravel/boost/bin/claude fails with the error Could not open input file, confirming the script is missing. This appears to be a silent installation failure where the package's executable files are not being created.

Steps To Reproduce

  1. Ensure a clean state: composer global remove laravel/boost
  2. Clear the cache: composer clear-cache
  3. Attempt a fresh global install: composer global require laravel/boost
  4. Check the global bin directory: ls -la ~/.config/composer/vendor/bin
  5. Check the package's source directory: ls -la ~/.config/composer/vendor/laravel/boost/

You will observe that claude is missing from the first directory, and the bin subdirectory (containing claude) is missing from the second.

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