Installing via composer, composer suggestions

Following the composer commands here: https://docs.silverstripe.org/en/5/getting_started/composer/

It eventually installs after I enable all the extensions.

However, I also get the message about suggestions: “35 package suggestions were added by new dependencies, use ‘composer suggest’ to see details”.

So I try composer suggest as suggested by composer, and it tells me that it could not find a composer.json file. So I move into the project directory and try again and get the message that composer could “not detect the root package (Silverstripe/installer) version, defaulting to ‘1.0.0’. See Troubleshooting - Composer

Is this a me issue? Is this a Silverstripe issue? Should it just be ignored?

If you set the type in composer.json to "project" it will no longer give that warning.

It’s a Silverstripe thing.

As per @GuySartorelli , go into composer.json and add a line.

Directly after name which is on line two, add a new line and put on that line:
“version”: “x.y”,

Put the Silverstripe version you installed here. I installed version 5.3 so I put that there:
“version”: “5.3”,

You should not be setting a version for your project, unless you explicitly want to track the version of your project (not the version of one of your dependencies) in the version of your composer.json.

Setting the type to “project” will remove the error if your version of composer is up to date.

See Release 2.7.3 · composer/composer · GitHub

Fixed the warning about a missing default version showing for packages with project type as those are typically not versioned and do not have cyclic dependencies