Add/Fix composer in an ongoing project We are having an ongoing project on OpenSocial, which is a profile based on Drupal 8. The project was installed using composer. However, later several modules were installed and updated via Drush. 

Due to this, the composer file and the actual application is not in sync. What would be the best way to get out of this situation? Is there any way to fix composer?
Try the Drush Composer Generate project. If you have your composer.json committed to a vcs, you can run composer-generate and then compare the results and fix up anything that it might mis-apply.