2015-07-18 108 views
1

嘗試運行作曲家安裝時出現此錯誤。我已經運行了作曲家更新,並且正在嘗試使用這個最新的鎖定文件進行安裝。沒有任何幫助。作曲家安裝出現異常

Loading composer repositories with package information 
Installing dependencies from lock file 
    - Installing zendframework/zend-stdlib (2.3.0) 
    Downloading: 100% 
    Invalid zip file, retrying... 
    - Installing zendframework/zend-stdlib (2.3.0) 
    Downloading: 100% 
    Invalid zip file, retrying... 
    - Installing zendframework/zend-stdlib (2.3.0) 
    Downloading: 100% 
    Failed to download zendframework/zend-stdlib from dist: '/var/www/jetcharters.com/vendor/zendframework/zend-stdlib/Zend/Stdlib/79060e401f0aa9a175bb6adb812a0860' is not a zip archive. 
    Now trying to download from source 
    - Installing zendframework/zend-stdlib (2.3.0) 
    Cloning d1c481b8a43f2f079b16d3567960ba539e9dacaa 
    d1c481b8a43f2f079b16d3567960ba539e9dacaa is gone (history was rewritten?) 



    [RuntimeException] 
    Failed to execute git checkout 'd1c481b8a43f2f079b16d3567960ba539e9dacaa' -- && git reset --hard 'd1c481b8a43f2f079b16d3567960ba539e9dacaa' -- 
    fatal: reference is not a tree: d1c481b8a43f2f079b16d3567960ba539e9dacaa 

我composer.json文件沒有引用的Zend直接,所以我想這是從另一個包所需的包?

{ 
    "name": "symfony/framework-standard-edition", 
    "license": "MIT", 
    "type": "project", 
    "description": "The \"Symfony Standard Edition\" distribution", 
    "autoload": { 
     "psr-0": {"": "src/"} 
    }, 
    "repositories": [{"type": "vcs", "url": "https://github.com/oleosjo/vzaar.git"}], 
    "require": { 
     "php": ">=5.3.3", 
     "symfony/symfony": "~2.5", 
     "doctrine/orm": "~2.2,>=2.2.3", 
     "doctrine/doctrine-bundle": "~1.2", 
     "twig/extensions": "~1.0", 
     "symfony/assetic-bundle": "~2.3", 
     "symfony/swiftmailer-bundle": "~2.3", 
     "symfony/monolog-bundle": "~2.4", 
     "sensio/distribution-bundle": "~2.3", 
     "sensio/framework-extra-bundle": "~3.0", 
     "sensio/generator-bundle": "~2.3", 
     "incenteev/composer-parameter-handler": "~2.0", 
     "friendsofsymfony/user-bundle": "[email protected]", 
     "pugx/multi-user-bundle": "3.0.*@dev", 
     "andheiberg/vzaar": "dev-master", 
     "cocur/slugify": "@stable", 
     "vresh/twilio-bundle": "dev-master", 
     "gregwar/captcha-bundle": "dev-master", 
     "KnpLabs/Gaufrette": "dev-master", 
     "knplabs/knp-paginator-bundle": "~2.4", 
     "friendsofsymfony/jsrouting-bundle": "@stable", 
     "geoip2/geoip2": "~2.0", 
     "maxmind/geoip": "dev-master", 
     "cystbear/authorizenet-php-sdk": "dev-master", 
     "knplabs/knp-snappy-bundle": "dev-master", 
     "whiteoctober/tcpdf-bundle": "dev-master", 
     "stof/doctrine-extensions-bundle": "[email protected]", 
     "practo/sentry-bundle": "dev-master", 
     "seferov/aws-bundle": "~1.1", 
     "league/csv": "~7.0", 
     "ob/highcharts-bundle": "~1.2" 
    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 
      "php app/console maxmind:geoip:update-data http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz" 
     ], 
     "post-update-cmd": [ 
      "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 
      "php app/console maxmind:geoip:update-data http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz" 
     ] 
    }, 
    "config": { 
     "bin-dir": "bin" 
    }, 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-web-dir": "web", 
     "symfony-assets-install": "symlink", 
     "incenteev-parameters": { 
      "file": "app/config/parameters.yml" 
     } 
    } 
} 
+0

您是否嘗試刪除供應商文件夾並再次運行'composer update'?有時候這會挽救我的生命。 –

+0

是的,無濟於事。 – jeremib

+0

我不確定你在做什麼。你的問題不是很清楚。但是,如果我複製上面的'composer.json'的源代碼,將其粘貼到一個目錄中並運行'composer update',一切都安裝好。即使是'zendframework/zend-stdlib'也正在下載和安裝。所以也許這個信息有助於找到你的問題,或者描述更多細節並更新你的問題。我無法重現該問題。 –

回答