Cant Install Composer And Laravel (mac El Capitano)

- 1 answer

im trying to follow step by step how to install laravel via

but I have error while installing in terminal, here is the logs

Archievalds-MacBook-Air:~ archievald$ curl -sS | php #!/usr/bin/env php All settings correct for using Composer Downloading...

Composer successfully installed to: /Users/archievald/composer.phar Use it: php composer.phar Archievalds-MacBook-Air:~ archievald$ sudo mv composer.phar /usr/local/bin/composer mv: rename composer.phar to /usr/local/bin/composer: No such file or directory Archievalds-MacBook-Air:~ archievald$

I cant even figure out how to install this, any help to fix this? thanks



According to Composer docs:

Note: On some versions of OSX the /usr directory does not exist by default. If you receive the error "/usr/local/bin/composer: No such file or directory" then you must create the directory manually before proceeding: mkdir -p /usr/local/bin.

Hope this helps.