Jean85/pretty-package-versions

Class 'Composer\InstalledVersions' not found

Closed this issue ยท 5 comments

we are using sentry-laravel package which requires your package.
but after installation we get below error.

Class 'Composer\InstalledVersions' not found

we are using composer.phar instead of installing composer.

You're installing using --ignore-platform-reqs, which skips on checking if a specific requirement of 1.4 is present. That requirement is:

"composer-runtime-api": "^2.0"

composer-runtime-api is a meta-package that requires using Composer 2.0 (currently in alpha); if you check your platform requirements correctly, you won't be able to install 1.4 (and newer) of this package, and you will obtain a compatible version instead (1.3 more likely).

Closing as stale. Feel free to reply or reopen if this is not resolved.

it works fine after upgrading to Composer 2.0+.
Maybe you are using an old version of 1.0+.
'Composer\InstalledVersions' is onl for the Composer 2.0+.

Class "Composer\InstalledVersions" not found

Just Simply Run composer2 install