fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

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

Open flashery opened 5 years ago

flashery commented 5 years ago

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
cebe commented 5 years ago

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.

flashery commented 5 years ago

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.

wilsonxyz commented 5 years ago

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>]...
flashery commented 5 years ago

@wilsonxyz did you try what I did above?

jmdemoor commented 2 years ago

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 )