當我運行:錯誤運行作曲家
composer global required 「fxp/composer-asset-plugin:^1.3.1」,
這是報告這樣的錯誤:
PHP Fatal error: Uncaught Error: Call to undefined method Composer\Package\RootPackage::getConfig()
當我運行:錯誤運行作曲家
composer global required 「fxp/composer-asset-plugin:^1.3.1」,
這是報告這樣的錯誤:
PHP Fatal error: Uncaught Error: Call to undefined method Composer\Package\RootPackage::getConfig()
使用此:
sudo composer global require "fxp/composer-asset-plugin:^1.3.1"
謝謝,但它不工作,我發現這是我的作曲家版本1.0.2beta這樣的原因我用sudo安裝作曲家,所以我無法完成作曲家的自我更新 –
注意:如果您在Ubuntu中,並且您使用sudo apt install composer,請將其刪除,再次使用curl或widget安裝。
copyedits和作曲家的PHP標籤 – ashawley