How does Mac ensure that ~ / .composer / vendor/bin is in the system path

the problem encountered when installing valet, wrote export PATH= "$PATH:$HOME/.composer/vendor/bin"
in .bashrc and executed source .bashrc
, but it is still not mentioned in the documentation in the system path.
what should I do

this is .bashrc
clipboard.png

.composer

clipboard.png

Mar.01,2021

  1. you. Composer does not have a vendor directory.
  2. export PATH remove the quotation marks.

do you want to use the composer command globally?

Please follow these steps

clipboard.png

then use composer [commands] directly


append ~ / .composer/vendor/bin to PATH
export PATH=$PATH:~/.composer/vendor/bin

Menu