安装失败,正在将 ./composer.json 恢复为其原始内容 [Composer\Repository\InvalidRepositoryException]

Installation failed, reverting ./composer.json to its original content [Composer\Repository\InvalidRepositoryException]

当尝试添加一个库时 symfony/var-dumper composer long 将带有 bower-asset 的包放入然后给出此错误 - [Composer\Repository\InvalidRepositoryException] No valid bower.json was found in any branch or tag of https://github.com/pammacdotnet/bootstrap-slider.git, could not load a package from it.

关于此 https://github.com/fxpio/composer-asset-plugin/issues/329 以及您在屏幕截图开头的警告消息,我认为您应该更新作曲家以修复警告。我可能会自己修复错误