I am trying to create an Installation profile in D8. I want to add module dependencies to composer file of the profile. (This profile is added to the site through composer)
I tried running the command
composer require drupal/token
but I got the error
Could not find a version of package drupal/token matching your minimum-stability (stable). Require it with an explicit version constraint allowin g its desired stability.
Is it possible to add dependencies to the profile composer.json or can it be done only through core composer.json?
Is the profile composer.json the right place to add the dependencies?