当我尝试在项目中更新作曲家时,我遇到内存限制问题,无法更新。
我曾尝试在全局和本地安装composer,但同样如此。 fxp / composer-asset-plugin:^ 1.2.0全局安装。
如果-d memory_limit = -1则占用所有RAM内存并冻结, 如果我将memory_limit设置为2GB或4GB,我只会得到内存限制错误,
我在3个不同的Yii2项目和不同的PC上遇到此问题 (MacOS,Ubuntu 14.04,Ubuntu 16.04)。现在我不知道如何解决这个问题。
这是我的一个项目composer.json:
{
"name": "yiisoft/yii2-app-advanced",
"description": "Yii 2 Advanced Application Template",
"keywords": ["yii2", "framework", "advanced", "application 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": "stable",
"require": {
"php": ">=5.4.0",
"fxp/composer-asset-plugin": "*",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"yiisoft/yii2-mongodb": "*",
"google/apiclient": "1.0.*@beta",
"bower-asset/admin-lte": "~1.0",
"dmstr/yii2-adminlte-asset": "2.*",
"bower-asset/font-awesome": "~4.0",
"kartik-v/yii2-widgets": "*",
"mobiledetect/mobiledetectlib": "*",
"kartik-v/yii2-icons": "*",
"kartik-v/yii2-widget-datepicker": "@dev",
"kop/yii2-scroll-pager": "dev-master",
"nirvana-msu/yii2-infinite-scroll": "1.0.*@dev",
"himiklab/yii2-recaptcha-widget": "*",
"yiisoft/yii2-jui": "~2.0",
"bower-asset/angular": "*",
"bower-asset/angular-route": "*",
"bower-asset/angular-strap": "*",
"2amigos/yii2-chartjs-widget" : "~2.0",
"kartik-v/yii2-date-range": "dev-master",
"yiisoft/yii2-imagine": "^2.0",
"2amigos/yii2-tinymce-widget": "~1.1",
"2amigos/yii2-ckeditor-widget": "~1.0",
"kartik-v/bootstrap-fileinput": "@dev",
"shiyang/yii2-masonry": "*",
"shiyang/yii2-infinite-scroll": "*",
"bower-asset/masonry": "~3.2",
"bower-asset/imagesloaded": "*",
"bower-asset/eventemitter": "4.*",
"2amigos/yii2-gallery-widget": "~1.0",
"philippfrenzel/yii2masonry": "*",
"kartik-v/yii2-grid": "@dev",
"2amigos/yii2-file-upload-widget": "~1.0",
"newerton/yii2-fancybox": "dev-master",
"facebook/php-sdk-v4": "^5.1",
"kartik-v/yii2-sortable": "*",
"serhatozles/yii2-simplehtmldom": "dev-master",
"mailgun/mailgun-php": "~1.7.2",
"geoip2/geoip2": "~2.0",
"bower-asset/clipboard": "*"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"
},
"config": {
"process-timeout": 1800
},
"extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
},
"asset-repositories": [
{
"name": "bower-asset/eventemitter",
"type": "bower-vcs",
"url": "git://github.com/Wolfy87/EventEmitter.git"
}
]
}
}