I have already had this problem several times. So I'm going to write it down here for future cases that may arise. In my current case I'm upgrading a Drupal 8 to Drupal 9, that website has been created WITHOUT composer (moreover, it doesn't even have GIT, they still work...
Mar