composer-asset-plugin icon indicating copy to clipboard operation
composer-asset-plugin copied to clipboard

No valid bower.json was found in any branch or tag of https://github.com/yiisoft/jquery-pjax.git

Open flashery opened this issue 5 years ago • 5 comments

Hello I have some issue with composer installation after installing your package in composer globally. See the error below

[Composer\Repository\InvalidRepositoryException]
  No valid bower.json was found in any branch or tag of https://github.com/yiisoft/jquery-pjax.git, could not load a package from it

flashery avatar Nov 23 '18 01:11 flashery

there is a bower.json here: https://github.com/yiisoft/jquery-pjax/blob/master/bower.json

can you show the command you used when you got the message above? also, if possible share your composer.json file so we can try to reproduce the issue.

cebe avatar Nov 23 '18 08:11 cebe

I don't know why but it fix the issue now when I did

composer clearcache

and when adding

"config": {
"fxp-asset": {
         enable: true
  }
}

When I run composer -vvv install it just installed all the packages without that error above.

flashery avatar Nov 23 '18 16:11 flashery

i have same issue here.

C:\xampp\htdocs\pks>composer require --prefer-dist wbraganca/yii2-dynamicform "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)


  [Composer\Repository\InvalidRepositoryException]
  No valid bower.json was found in any branch or tag of https://github.com/jquery/jquery-dist.git, could not load a p
  ackage from it.


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

wilsonxyz avatar Mar 26 '19 08:03 wilsonxyz

@wilsonxyz did you try what I did above?

flashery avatar Mar 29 '19 13:03 flashery

and when adding

"config": {
"fxp-asset": {
         enable: true
  }
}

@flashery I know this is old, but where did you put these settings? config.json? (I have the exact same message as @wilsonxyz )

jmdemoor avatar Mar 06 '22 07:03 jmdemoor