Loïc Rutabana
Loïc Rutabana

Reputation: 84

Restore Composer Path

A few weeks ago I accidentally deleted a bunch of paths from my environment variables and I just now realized I cannot use the composer command in cmd.exe.

I'm pretty sure I used the default settings as they were but I have no idea what path was/what to add to the PATH environment variable.

Upvotes: 1

Views: 322

Answers (1)

Nawwar AlMakhlouf
Nawwar AlMakhlouf

Reputation: 91

Open the command line and write

WHERE /R C:\ composer

you will get the path of composer you have

enter image description here

so you can add the path (the directory in which the composer executable is located):

C:\ProgramData\ComposerSetup\bin

to your environment variables and continue using composer

Upvotes: 1

Related Questions