-1

terminal picture

I just got my macbook pro today i followed a tutorial how to install composer globally I installed first mamp as local server then installed composer which works fine while i am in root directory on mac,then i created a bash profile and added a path

export PATH=" /.composer/vendor/bin:$PATH"

like this after this i created an alias to enter htdocs in MAMP and when i test it inside docs it says composer not found.

I appreciate everyone who will help me figure this one out.

I tried all methods from below,whenever i try to move it it says rename composer.phar to /usr/local/bin/composer/: No such directory..

Filip Baron
  • 35
  • 1
  • 6

1 Answers1

0

Open your terminal and type nano ~/.bash_profile

Add the following

alias composer="php /usr/local/bin/composer.phar"

Finally run:

source ~/.bash_profile

Check this out here: https://duvien.com/blog/installing-composer-mac-osx

Azael
  • 114
  • 6