I am working on MAMP and I have already installed a drupal7 site in my local machine ( not using drush or composer ). Then I have installed composer and drush ( https://www.bramvandenbulcke.be/en/article/installing-drush-mamp ). Now my Drupal site is under htdocs folder and its working. If I run "drush" from htdocs via command line then it's shown a bunch of help command list.
But if I am trying to install any module using drush dl Module_Name then its give me an error
" [error] dl has been deprecated. Please build your site using Composer. Add new projects with composer require drupal/[project-name]. Use https://www.drupal.org/project/composer_generate to build a composer.json which represents the the enabled modules on your site. "
Can anyone plz tell me whats the problem? Do I need to install a fresh Drupal 7 site via composer?