Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

uniqueginun's avatar

Place Composer’s project vendor bin directory in your

Hello,

I am on windows 11 and I am trying to install a package called Lucid so I composer required it successfully, however they have this segment in their docs which says:

Make sure to place Composer’s project vendor bin directory in your $PATH so the lucid executable can be located by your system. Usually it’s done by running export PATH="$PATH:./vendor/bin" to have it available in your current Terminal session, or add it to your corresponding Terminal profile (e.g. ~/.bashrc, ~/.bash_profile, ~/.zshrc) to have it permanently loaded with every session.

I did exactly that by running export PATH="$PATH:./vendor/bin" and then when I run lucid init:micro I get this error in my terminal /usr/bin/env: ‘php’: No such file or directory.

by the way, composer is working fine in my machine.

0 likes
8 replies
uniqueginun's avatar

@Sinnbeck when I can run ```php --version`` inside windows PowerShell but when I run that command it says export is not recognized. and when I run it from Linux terminal it is not working

siangboon's avatar

by the way, the error seem that your php is not probably install or not install

Please or to participate in this conversation.