1

当我尝试进行作曲家更新时,我目前收到此错误。

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating leafo/lessphp (dev-master c6cd043 => v0.3.9)
    [RuntimeException]                                             
    Failed to execute git status --porcelain --untracked-files=no  

我的要求块是:

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    "twig/extensions": "1.0.*",
    "symfony/assetic-bundle": "2.3.*",
    "symfony/swiftmailer-bundle": "2.3.*",
    "symfony/monolog-bundle": "2.3.*",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "sensio/generator-bundle": "2.3.*",
    "knplabs/knp-menu": "2.0.*@dev",
    "knplabs/knp-menu-bundle": "2.0.*@dev",
    "incenteev/composer-parameter-handler": "~2.0",
    "leafo/lessphp": "v0.3.9",
    "twbs/bootstrap": "2.3.*",
    "jquery/jquery": "1.9.*",
    "FortAwesome/Font-Awesome": "3.2.1",
    "egeloen/ckeditor-bundle": "2.*"
},

我不知道错误是什么意思。我试图通过谷歌搜索,但无法解决我的问题。我试图删除包“leafo/lessphp”:“v0.3.9”并再次运行更新,但即使这样也会引发同样的错误。

我试图运行“composer status https://github.com/leafo/lessphp.git ”,这给了我错误:

fatal: Not a git repository (or any of the parent directories): .git

但是我可以通过浏览器打开链接。该链接在 composer.lock 中找到

4

3 回答 3

3

就我而言,我vendor完全删除了该文件夹并composer install再次运行。这解决了问题,安装成功完成。

于 2021-11-03T01:54:09.443 回答
2

现在似乎已修复运行“composer install --prefer-dist”,在此处找到stackoverflow.com/a/17794382/995653现在我没有收到任何错误。很奇怪,但文件一定是混淆了。

于 2013-10-29T20:25:46.583 回答
2

在 Windows 上,我安装了 git,然后重新启动了 Windows。有用。

于 2018-05-26T10:47:46.193 回答