当我运行:错误运行作曲家
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