Fresh Laragon / Laravel install | Laragon on c: / data on f: disk | unable to launch composer


  • | 263 points

    Hi,
    Just installed Laragon yesterday on a windows environment l(laragon installed in c: folder and data in f:projects/www/projectname).

    Through the terminal I can access php artisan, but not composer. Composer.phar file is present in c:\laragon\bin folder, but when I'm typing

    F:\PROJECTS\www\projectname\composer, I get the following message :

    'composer' is not recognized as an internal or external command,
    operable program or batch file.

    I'm certainly missing something, would appreciate your support,

    Cheers,

    Marc


  • administrators
    | 91044 points

    @marcq : Just type: composer


  • | 263 points

    @leokhoa : already tried :

    Message : 'composer' is not recognized as an internal or external command,
    operable program or batch file.


  • | 263 points

    I can launch composer from my laragon folder c:\laragon\bin\composer, but not from my project folder f:projects\www\projectname

    it seems that the path isn't set globally but I have check the composer.bat which is ok my user and system environment variables are ok


  • administrators
    | 91044 points

    @marcq : Did you try it in Laragon's Terminal (Menu > Laragon > Terminal)?


  • | 263 points

    @leokhoa : I restarted my machine and it is working now. Thanks for your time. Problem solved


  • administrators
    | 91044 points

    @marcq : haha. The solution is so simple.
    I'm glad to here it's working. Cheers!


  • | 263 points

    Thanks @leokhoa, I just forgot to restart... bye


Log in to reply
 

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