search

Home  >  Q&A  >  body text

There is a problem with the Chinese mirror installation

MacBook-Pro:~ gun$ composer config -g repo.packagist composer https://packagist.phpcomposer.com
-bash: composer: command not found

求老师解答

DeephugDeephug2092 days ago1192

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2019-06-11 14:03:26

    According to the prompt: The composer command was not found

    1. Whether composer was downloaded and installed correctly

    2. It can be seen that you should be on a MacOS system. If you have not moved composer to the global command directory bin, you should enter the directory where composer.phar is located and then execute composer

    reply
    1
  • Deephug

    OK, I added the command sudo mv composer.phar /usr/local/bin/composer

    Deephug · 2019-06-11 15:24:16
  • Cancelreply