php - cmd line mac gives me weird output when trying to install composer

57

It's probably a very simple solution, i tried installing composer (without succes). So i tried to give it a different approach and tried multiple ways to install it including a new version of PHP7 / (7.1). But could not find succes. Cmd line keeps giving me the 5.3.6. version. So i tried homebrew and then something went wrong. Now when i type in 'install composer' i get this output.usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ...

Can anyone help me get out of this mode or whatever it is? And maybe as a plus give me some help on why my version wont change when i install PHP 7 via cmd line or MAMP?

Much appreciated.

Jimi

15

Answer

Solution:

You should use "composer install" instead of "install composer" :)

People are also looking for solutions to the problem: php - PHPUnit how to test a specific method with specific parameter with specific answer for more than one call

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.