Download D7 module using Composer for D8?
If I were you, I would just use wget.

Copy the Zip file url, ex:

sudo wget https://ftp.drupal.org/files/projects/views-7.x-3.24.zip


and then

sudo unzip views-7.x-3.24.zip