正在Yii2上更新Composer-缺少依赖项



我必须备份整个应用程序才能将其移动到另一台服务器,在设置了所有要求后,我尝试运行"作曲家更新";我发现了一些由于缺乏经验而无法解决的问题。

以下是问题:

问题1-根composer.json需要miloschman/yii2 highcharts小部件^6.0->可通过miloschman/yii2 highcharts小部件[v6.0]满足。-miloschman/yii2 highcharts小部件v6.0需要bower asset/highcharts^6.0->在任何版本中都找不到,包名称中可能存在拼写错误。

问题2-根composer.json需要russ66/yii2倒计时^0.1.0->可满足rus66/yii2倒计时[0.1]。-russ66/yii2倒计时0.1需要bower asset/jquery.countdown*->在任何版本中都找不到,包名称中可能存在拼写错误。

这是我的composer.json文件:

{
"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": "stable",
"require": {
"php": ">=5.4.0",
"yidas/yii2-composer-bower-skip": "~2.0.5",             
"yiisoft/yii2": "~2.0.5",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-swiftmailer": "~2.0.0",
"dmstr/yii2-adminlte-asset": "2.*",
"hguenot/yii2-gsftp": "*",
"ext-bz2": "*",
"edvlerblog/yii2-adldap-module": "^1.1.2",
"miloschuman/yii2-highcharts-widget": "dev-master",
"mtdowling/cron-expression": "^1.1",
"kartik-v/yii2-field-range": "*",
"kartik-v/yii2-widgets": "*",
"kartik-v/yii2-date-range": "*",
"kartik-v/yii2-grid": "*",
"kartik-v/yii2-mpdf": "*",
"kartik-v/yii2-export": "*",
"kartik-v/yii2-widget-sidenav": "*",
"kartik-v/yii2-nav-x": "*",
"yii2mod/yii2-ftp": "*",
"kartik-v/yii2-tabs-x": "*",
"kartik-v/yii2-widget-typeahead": "*",
"kartik-v/yii2-editable": "*",
"kartik-v/yii2-money": "*",
"sunra/php-simple-html-dom-parser": "v1.5.0",        
"xj/snoopy": "2.0.0",
"vova07/yii2-console-runner-extension": "*",
"hscstudio/yii2-export": "1.0.0",
"omnilight/yii2-scheduling": "*",
"himiklab/yii2-recaptcha-widget": "*",
"dts/ebay-sdk-php": "^7.0",
"mongosoft/yii2-soap-client": "*",
"exeu/apai-io": "~2.0",
"authorizenet/authorizenet": "1.9.2",
"kop/yii2-scroll-pager": "dev-master",
"alfallouji/dhl_api": "^0.2.10",
"vinceg/usps-php-api": "^1.0",
"gabrielbull/ups-api": "^0.7.11",
"jeremy-dunn/php-fedex-api-wrapper": "dev-master",
"russ666/yii2-countdown": "^0.1.0",
"dsposito/argo": "^2.0",
"impgds/rocketshipit": "dev-master" ,
"ujjwal/currency-converter":"2.2.*",
"tawba/currency-converter": "^1.7",
"bestbuy/bestbuy": "^1.0",
"paquettg/php-html-parser": "^1.7",
"picqer/php-barcode-generator": "^0.2.1",
"sorich87/bootstrap-tour": "*@dev",
"mycademy/yii2-bootstrap-tour": "*@dev",
"moonlandsoft/yii2-phpexcel": "*",
"phpoffice/phpspreadsheet" : "*@dev",
"fabpot/goutte": "^3.2",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.3",
"jonnyw/php-phantomjs": "4.*",
"dmore/chrome-mink-driver": "^2.6",
"facebook/webdriver": "^1.6",
"stichoza/google-translate-php": "^3.2",
"docta/mercadolibre": "^1.0",
"dejurin/php-google-translate-for-free": "^1.0",
"viniciusgava/google-translate-api": "^2.0",
"serps/search-engine-google": "^0.4.6",
"guzzlehttp/psr7": "^1.5",
"zendframework/zend-diactoros": "^1.8",
"serps/http-client-curl": "^0.2.3",
"components/font-awesome": "^5.15"



},


"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",
"codeception/specify": "~0.4.3",
"behat/mink": "^1.7",
"behat/mink-zombie-driver": "dev-master",
"simpletest/simpletest": "^1.1"

},
"config": {
"process-timeout": 1800,
"fxp-asset": {
"installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
},
"allow-plugins": {
"composer/installers": false,
"yiisoft/yii2-composer": true
}
},
"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"
]
}

}
}

我已经研究了列出的2个问题,根据文档,这些包需要bower资产,我安装了bower,但我不知道如何继续。

这取决于您想要升级的版本。或者您使用的是php的哪个版本?例如,Yii 2.0.12的升级非常重要。

按照本页的说明操作:

注意:以下升级说明是累积的。也就是说,如果你想从版本A升级到版本C,并且有版本B在A和C之间,您需要同时遵循A和B的说明。

为了确保最佳稳定性,您还应该在此步骤中升级composer:

composer self-update
composer global require "fxp/composer-asset-plugin:^1.4.1" --no-plugins

Yii2预计Bower和NPM软件包将分别安装到vendor/Bower和vendor/NPM文件夹中。

因此,要将asset-packagist用于Yii2项目,有必要在应用程序配置中重新分配Bower和NPM别名,如下所示:

$config = [
...
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm'   => '@vendor/npm-asset',
],
...
];

从composer资产插件迁移当您在一台服务器上托管多个应用程序时,从composer资产插件中移出并不简单。众所周知,当插件在全局范围内安装时,asset-packagist和asset-plugin不能很好地协同工作。因此,为了不通过删除插件影响其他应用程序,您可以通过composer.json-config选项在本地禁用插件(为此,您需要插件版本≥1.3.0(:

"config": {
"fxp-asset": {
"enabled": false
}
}

源链接

相关内容

  • 没有找到相关文章

最新更新