composer:RuntimeException

时间:2015-06-05 11:11:19

标签: git composer-php neoscms

我正在尝试通过作曲家安装Typo3-Neos。

我按照列出的说明进行操作:

  • curl -s https://getcomposer.org/installer | php(下载作曲家)
  • php composer.phar自我更新(已经是最新的)
  • php composer.phar create-project -s beta typo3 / neos-base-distribution Neos-2.0(尝试下载Typo3-Neos)

在显示以下消息的最后一步中:

<div class="select-box-style right">
    <div class="your-list-title">Your Lists</div>
    <select multiple="multiple" class="md_what_get right SlectBox">
        <option selected value="electronics">Electronics</option>
        <option value="games">Video Games</option>
        <option value="books">Books</option>
        <option value="others">Others</option>
    </select>
    <div class="add-list-box">
        <input type="text" class="input-add-list" />
        <label class="label-spcbtn-blue spr">Add</label>
    </div>
</div>

在一篇博客文章中,作者描述了更新机器的git版本。我试过了。目前的git版本是(gentoo linux - 使用已使用的标志列出):

# php composer.phar create-project -s beta typo3/neos base-distribution Neos-2.0
Installing typo3/neos-base-distribution (2.0.0-beta2)
 - Installing typo3/neos-base-distribution (2.0.0-beta2)
   Cloning f344c0bdc9b2f83341f443c66d460204eaa0afd2

Created project in Neos-2.0
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing composer/installers (v1.0.21)
   Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
 - Installing symfony/console (v2.7.0)
   Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
 - Installing symfony/dom-crawler (v2.5.12)
   Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
 - Installing symfony/yaml (v2.5.12)
   Loading from cache

... a few more

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing doctrine/orm (v2.4.7)
Loading from cache

Class TYPO3\Flow\Composer\InstallerScripts is not autoloadable, can not call post-package-install script
  - Installing typo3/eel (3.0.0-beta3)
    Cloning 108cd4e87cbdfb1d797a513590a3a77466248f8f

[RuntimeException]

  Failed to execute git checkout
 '108cd4e87cbdfb1d797a513590a3a77466248f8f' --   
  && git reset --hard
 '108cd4e87cbdfb1d797a513590a3a77466248f8f'     --              
 fatal: Not a git repository (or any of the parent directories): 
 .git           

RuntimeException的原因是什么?作曲家,neos或本地配置(php,git,...)内部的错误?

谢谢你的时间!

2 个答案:

答案 0 :(得分:2)

https://github.com/composer/composer/issues/996提到了一种解决方法。

composer update --prefer-dist 做了工作

答案 1 :(得分:0)

sudo composer update解决了我的问题,可能是因为您有时在sudo模式下运行了作曲家更新