Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Fresh Install of Laravel StarterKit, and it works - but I can't add new packages via Composer


I am trying to add Rollbar with:
composer require rollbar/rollbar-laravel

And I get this response:

Problem 1
- Root composer.json requires laravel/framework ^9.19, found laravel/framework[v9.19.0, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 2
- laravel/sanctum is locked to version v3.2.1 and an update of this package was not requested.
- laravel/sanctum v3.2.1 requires illuminate/console ^9.21|^10.0 -> found illuminate/console[v9.21.0, ..., 9.x-dev, 10.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 3
- laravel/tinker is locked to version v2.8.0 and an update of this package was not requested.
- laravel/tinker v2.8.0 requires illuminate/console ^6.0|^7.0|^8.0|^9.0|^10.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, 10.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 4
- laravel/breeze is locked to version v1.18.0 and an update of this package was not requested.
- laravel/breeze v1.18.0 requires illuminate/console ^9.21|^10.0 -> found illuminate/console[v9.21.0, ..., 9.x-dev, 10.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 5
- laravel/sail is locked to version v1.18.1 and an update of this package was not requested.
- laravel/sail v1.18.1 requires illuminate/console ^8.0|^9.0|^10.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, 10.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 6
- spatie/flare-client-php 1.3.2 requires illuminate/pipeline ^8.0|^9.0 -> found illuminate/pipeline[v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.
- spatie/laravel-ignition 1.6.4 requires spatie/flare-client-php ^1.0.1 -> satisfiable by spatie/flare-client-php[1.3.2].
- spatie/laravel-ignition is locked to version 1.6.4 and an update of this package was not requested.


----

I have tried running composer update and composer install. I still get these issues. How can I resolve this?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


try removing composer.lock then try again composer require rollbar/rollbar-laravel



Hi,

Please remove the vendor folder. Try removing composer.lock file then try again

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(