composer: command not found


  • | 108 points

    Hi!
    I run
    /c/laragon/bin/composer
    $ composer -V
    As the result I have:
    bash: composer: command not found
    Could anybody explain why?

    There are 3 files in /c/laragon/bin/composer directory: composer; composer.phar; composer.bat (windows10)
    Do I have composer installed?
    How can I check whether composer is installed properly?


  • administrators
    | 131393 points

    @dimad3 : How about using Laragon's Terminal (Menu > Laragon > Terminal)?


  • | 1113 points

    1. In the composer directory, run the composer.phar or composer.bat if it opens, check if it works by entering composer -v

    2. If it works well there, then you have to add the path. Use Laragon (Menu > Tools > Path > Add Laragon to Path)


  • | 108 points

    Thank you! Running:
    C:\laragon\bin\composer
    λ composer -V
    from Laragon's Terminal is ok!
    Does it mean I should use ONLY Laragon's Terminal for running Composer’s commands?


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.