这是我的作曲家.json文件
{
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-nav-x": "*",
"johnitvn/yii2-ajaxcrud": "*",
"kartik-v/yii2-grid": "@dev",
"kartik-v/yii2-widget-timepicker": "*",
"kartik-v/yii2-widget-colorinput": "*",
"kartik-v/yii2-widget-datepicker": "@dev",
"kartik-v/yii2-widget-select2": "@dev",
"kartik-v/yii2-date-range": "dev-master",
"kartik-v/yii2-field-range": "dev-master",
"kartik-v/yii2-helpers": "dev-master",
"kartik-v/yii2-widget-datetimepicker": "*",
"kartik-v/yii2-widget-typeahead": "*",
"kartik-v/yii2-tabs-x": "@dev",
"bedezign/yii2-audit": "*",
"2amigos/yii2-chartjs-widget": "*",
"wbraganca/yii2-dynamicform": "*",
"kartik-v/yii2-mpdf": "*",
"kartik-v/yii2-export": "@dev",
"kartik-v/yii2-dialog": "@dev"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",
"yiisoft/yii2-gii": "~2.0.0",
"yiisoft/yii2-faker": "~2.0.0",
"codeception/base": "^2.2.3",
"codeception/verify": "~0.3.1"
},
"config": {
"process-timeout": 1800,
"fxp-asset":{
"installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}
}
我从GitHub获取源代码并将"kartik-v/yii2-dialog": "@dev"
添加到文件中并运行composer update
但是它一直显示错误
Problem 1
- kartik-v/yii2-dialog v1.0.1 required bower-asset/bootstrap3-dialog ~1.34 ->no matching package found.
- kartik-v/yii2-dialog v1.0.0 required bower-asset/bootstrap3-dialog ~1.34 ->no matching package found.
- Installation request for kartik-v/yii2-dialog * -> satisfiable by kartik-v/yii2-dialog[v1.0.0, v1.0.1].
谁能说出问题是什么?我试着用另一台电脑和instaill工作。它只能在我自己的电脑上工作
答案 0 :(得分:2)
我对这个问题进行了一些搜索,我发现有几个解决方案。
如果您不想测试此选项,可以尝试首先转到选项#。尝试从头开始安装Yii2并尝试先安装此小部件。如果它有效,则表示您之前项目的包依赖性存在问题。
如果第一个选项不起作用,则问题可能出在作曲家身上。
尝试以下命令:
composer self-update
composer update
如果没有解决,请进一步尝试:
composer global require "fxp/composer-asset-plugin: ^1.3.1"
composer update