laravel-assetic icon indicating copy to clipboard operation
laravel-assetic copied to clipboard

Composer can't find assetic ~1.2

Open epicserve opened this issue 10 years ago • 7 comments

I wanted to try this project and I followed the instructions in the readme.md. I added "barryvdh/laravel-assetic": "dev-master" to composer.json and then when I run composer update, I get the following error.

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for barryvdh/laravel-assetic dev-master -> satisfiable by barryvdh/laravel-assetic[dev-master].
    - barryvdh/laravel-assetic dev-master requires kriswallsmith/assetic ~1.2 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

epicserve avatar Apr 03 '14 15:04 epicserve

This version was bumped here: https://github.com/barryvdh/laravel-assetic/commit/86406e

But I can't find version 1.2 at https://github.com/kriswallsmith/assetic/

claar avatar Apr 03 '14 15:04 claar

1.2 is the dev-master branch. Lower your stability, or require that package with @dev in your composer.

barryvdh avatar Apr 03 '14 15:04 barryvdh

Thanks, Barry! You're awesome, as always.

I should have checked Packagist; https://packagist.org/packages/kriswallsmith/assetic makes it obvious.

claar avatar Apr 03 '14 15:04 claar

Yeah it is kind of a bummer that I missed that first too. I developed some stuff but realized it worked only on the dev version. Don't know why it is taking so long to release 1.2..

barryvdh avatar Apr 03 '14 15:04 barryvdh

It might be helpful to have instructions added to readme.md ... something like:

If you get an error when running composer update you might need to add or change your composer.json settings to the following:

{

    ...
    "minimum-stability": "dev",
    "prefer-stable": true

}

epicserve avatar Apr 03 '14 15:04 epicserve

Deel free to submit a PR :) Op 3 apr. 2014 17:45 schreef "epicserve" [email protected]:

It might be helpful to have instructions added to readme.md ... something like:

If you get an error when running composer update you might need to add or change your composer.json settings to the following:

{

...
"minimum-stability": "dev",
"prefer-stable": true

}

Reply to this email directly or view it on GitHubhttps://github.com/barryvdh/laravel-assetic/issues/5#issuecomment-39467532 .

barryvdh avatar Apr 03 '14 15:04 barryvdh

PR, added

epicserve avatar Apr 03 '14 15:04 epicserve