Composer could not detect the root package (roots/bedrock) version

I’ve got a weird a problem, a new site is provisioning fine to a DO droplet, but I’m running into the following error when I try to deploy:

FAILED! => {"changed": false, "msg": "Composer could not detect the root package (roots/bedrock) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version No vendor dir present, checking non-dev platform requirements from the lock file", "stdout": "Composer could not detect the root package (roots/bedrock) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version\nNo vendor dir present, checking non-dev platform requirements from the lock file\n", "stdout_lines": ["Composer could not detect the root package (roots/bedrock) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version", "No vendor dir present, checking non-dev platform requirements from the lock file"]}

  • I’ve tried re-provisioning to new droplets.
  • I’m able to deploy to other sites.
  • The composer package installs fine locally.
  • If I SSH into the server and run composer update it will give me that message above as a warning, but still install everything.

Any ideas what is causing this?

Hi, I had the same issue today but it turned out this error was triggered by a version mismatch in one the composer packages in my composer.json