'Composer not working, windows 10 , MAMP PRO

I started using MAMP PRO in windows 10 because i need to change php versions for different projects, but composer is not working, im getting this error:

$ composer
bash: composer: command not found

but composer used to work before with xampp and still appears in terminal outside of my projects. i dont know what im doing wrong.

  1. i tried install composer again, nothing.
  2. i gived path in windows environment variables, nothing.
  3. i tried give path in new composer install to mamp php version, nothing.

why?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source