2017-08-02 182 views
0

我試圖安裝我爲學習而構建的第一個作曲家包。無法安裝作曲家包

對於這一點,我已經成功地建立Github上庫和packagist帳戶:

https://github.com/xparthx/Composer-package-demo

https://packagist.org/packages/xparthxvorax/demo

的問題是,當我嘗試它使用composer require xparthxvorax/demo安裝,它給了我下面的錯誤:

[UnexpectedValueException]
Error while installing xparthxvorax/demo, composer-plugin packages should have a class defined in their extra key to be usable.

我認爲問題是與包類型。按照這個文檔,默認套餐類型應該是

https://getcomposer.org/doc/04-schema.md#type

回答