composer-asset-plugin
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
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
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.
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.
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 did you try what I did above?
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 )