我尝试了:
-
作曲家全局更新
-
作曲家selfupdate
-
作曲家更新
我在第三步中遇到了错误。
我运行php 7.构建网页使用yii2。过去,我成功地运行了"作曲家更新"(如我所记得的那样,那是在将PHP更新为7之前)
下面是我的作曲家。
{
"name": "yiisoft/yii2-app-basic",
"description": "Yii 2 Basic Project Template",
"keywords": ["yii2", "framework", "basic", "project template"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"yiisoft/yii2": "*",
"yiisoft/yii2-authclient": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-widget-datetimepicker": "*",
"kartik-v/yii2-widget-select2": "@dev",
"dektrium/yii2-user": "*",
"philippfrenzel/yii2fullcalendar": "*",
"kartik-v/yii2-widget-timepicker": "*",
"kartik-v/yii2-widget-depdrop": "@dev",
"wbraganca/yii2-dynamicform": "*",
"kartik-v/yii2-widgets": "*",
"kartik-v/yii2-grid": "@dev",
"kartik-v/yii2-mpdf": "dev-master",
"kartik-v/yii2-popover-x": "*",
"kartik-v/yii2-krajee-base": "dev-master",
"bluezed/yii2-scroll-top": "*",
"kartik-v/yii2-icons": "@dev",
"kartik-v/yii2-export": "*",
"kartik-v/yii2-field-range": "*",
"kartik-v/yii2-widget-typeahead": "*",
"fxp/composer-asset-plugin": "*",
"ext-gd": "*",
"codemix/yii2-streamlog": "^1.0",
"ext-intl": "*",
"yii2mod/yii2-google-maps-markers": "*",
"kartik-v/yii2-tabs-x": "*",
"kartik-v/yii2-editable": "*",
"kartik-v/yii2-money": "dev-master",
"yiisoft/yii2-imagine": "*",
"himiklab/yii2-recaptcha-widget": "*",
"aws/aws-sdk-php": "^3.20",
"aws/aws-php-sns-message-validator": "^1.1",
"doctrine/cache": "^1.6",
"fedemotta/yii2-aws-sdk": "*",
"loveorigami/yii2-notification-wrapper": "*",
"bower-asset/noty": "^2.3",
"bower-asset/jquery-growl": "^1.3"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"
},
"config": {
"process-timeout": 1800
},
"scripts": {
"post-create-project-cmd": [
"yii\composer\Installer::postCreateProject"
]
},
"extra": {
"yii\composer\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
],
"generateCookieValidationKey": [
"config/web.php"
]
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}
谢谢。
存在"philippfrenzel/yii2fullcalendar": "*"
的错误您可以使用composer update -vvv
您可以在这里看到:https://github.com/philippfrenzel/yii2fullcalendar/issues/76
用它来解决颞:
$ composer global require fxp/composer-asset-plugin:~1.3@dev
在此之后,如果您尝试执行与此类似的作曲家时获得另一个错误:
Changed current directory to /Users/xxxx/.composer
Fatal error: Call to undefined method ComposerPackageRootPackage::getConfig() in /Users/xxxx/.composer/vendor/fxp/composer-asset-plugin/Util/Config.php on line 125
要修复此问题,您仅删除文件夹:sudo rm -rf /Users/xxxx/.composer