A
A
adrash kh2018-09-20 11:34:57
linux
adrash kh, 2018-09-20 11:34:57

I can't execute the mv composer.phar /usr/local/bin/composer command, what should I do??

I want to install yii2. And after executing the command curl -sS https://getcomposer.org/installer | php. I execute the following mv composer.phar /usr/local/bin/composer. But the console displays an error
mv: cannot stat 'composer.phar': No such file or directory
Please tell me what to do

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Letyagin, 2018-09-20
@JorryGo

Because it was the installer
ls file that was downloaded to help you see what exactly was downloaded.
This will help you install

C
CityCat4, 2018-09-20
@CityCat4

Because it says in English - there is no composer.phar file

D
Dmitry, 2018-09-20
@slo_nik

Good morning.
Install composer globally on the system.
In console
After that you will be able to access composer from the project directory
composer your-command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question