1. <i id='Gtr20'><tr id='Gtr20'><dt id='Gtr20'><q id='Gtr20'><span id='Gtr20'><b id='Gtr20'><form id='Gtr20'><ins id='Gtr20'></ins><ul id='Gtr20'></ul><sub id='Gtr20'></sub></form><legend id='Gtr20'></legend><bdo id='Gtr20'><pre id='Gtr20'><center id='Gtr20'></center></pre></bdo></b><th id='Gtr20'></th></span></q></dt></tr></i><div id='Gtr20'><tfoot id='Gtr20'></tfoot><dl id='Gtr20'><fieldset id='Gtr20'></fieldset></dl></div>
        <bdo id='Gtr20'></bdo><ul id='Gtr20'></ul>
    2. <tfoot id='Gtr20'></tfoot>

    3. <small id='Gtr20'></small><noframes id='Gtr20'>

    4. <legend id='Gtr20'><style id='Gtr20'><dir id='Gtr20'><q id='Gtr20'></q></dir></style></legend>

      Composer 抛出 [ReflectionException] Class FxpComposerAssetPlug

      Composer throws [ReflectionException] Class FxpComposerAssetPluginRepositoryNpmRepository does not exist(Composer 抛出 [ReflectionException] Class FxpComposerAssetPluginRepositoryNpmRepository 不存在)

            <legend id='hBIaH'><style id='hBIaH'><dir id='hBIaH'><q id='hBIaH'></q></dir></style></legend>

              <tfoot id='hBIaH'></tfoot>
              • <bdo id='hBIaH'></bdo><ul id='hBIaH'></ul>

                <small id='hBIaH'></small><noframes id='hBIaH'>

                  <tbody id='hBIaH'></tbody>

              • <i id='hBIaH'><tr id='hBIaH'><dt id='hBIaH'><q id='hBIaH'><span id='hBIaH'><b id='hBIaH'><form id='hBIaH'><ins id='hBIaH'></ins><ul id='hBIaH'></ul><sub id='hBIaH'></sub></form><legend id='hBIaH'></legend><bdo id='hBIaH'><pre id='hBIaH'><center id='hBIaH'></center></pre></bdo></b><th id='hBIaH'></th></span></q></dt></tr></i><div id='hBIaH'><tfoot id='hBIaH'></tfoot><dl id='hBIaH'><fieldset id='hBIaH'></fieldset></dl></div>
                本文介绍了Composer 抛出 [ReflectionException] Class FxpComposerAssetPluginRepositoryNpmRepository 不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我安装了最新版本(1.0.0.稳定版)的composer,并在我的Yii2项目中输入:

                php composer.phar 更新

                它给了我这个错误:

                <块引用>

                [ReflectionException] Class FxpComposerAssetPluginRepositoryNpmRepository 不存在

                <块引用>

                [ErrorException] FxpComposerAssetPluginRepositoryAbstractAssetsRepository::whatProvides() 的声明应该与 ComposerRepositoryComposerRepository::whatProvides(ComposerDependencyResolverPool $pool, $name, $bypassFilters = false 兼容)

                有人可以帮我解决这个问题吗?

                这是我的 composer.json

                <代码>{"name": "yiisoft/yii2-app-advanced","description": "Yii 2 高级项目模板","关键字": ["yii2", "框架", "高级", "项目模板"],"主页": "http://www.yiiframework.com/","类型": "项目","license": "BSD-3-Clause",支持": {"问题": "https://github.com/yiisoft/yii2/issues?state=open","论坛": "http://www.yiiframework.com/forum/","wiki": "http://www.yiiframework.com/wiki/","irc": "irc://irc.freenode.net/yii",来源":https://github.com/yiisoft/yii2"},最低稳定性":稳定",要求": {"php": ">=5.4.0","yiisoft/yii2": ">=2.0.6","yiisoft/yii2-bootstrap": "*","yiisoft/yii2-swiftmailer": "*","kartik-v/yii2-widget-fileinput": "@dev","golonka/bbcodeparser": "^2.2"},需要开发":{"yiisoft/yii2-codeception": "*","yiisoft/yii2-debug": "*","yiisoft/yii2-gii": "*","yiisoft/yii2-faker": "*"},配置":{进程超时":1800},额外的": {资产安装程序路径":{"npm-asset-library": "供应商/npm",凉亭资产库":供应商/凉亭"}}}

                解决方案

                大约 9 天前(大约 2016 年 3 月下旬),ComposerRepositoryComposerRepository::whatProvides api 发生了变化.(#2668)所以,如果你已经全局安装了 fxp/composer-asset-plugin,你应该更新它.你可以这样做:

                php composer.phar 全局更新 fxp/composer-asset-plugin --no-plugins

                I installed the latest version (1.0.0. stable) of composer and in my Yii2 project I typed this:

                php composer.phar update

                It gives me this error:

                [ReflectionException] Class FxpComposerAssetPluginRepositoryNpmRepository does not exist

                [ErrorException] Declaration of FxpComposerAssetPluginRepositoryAbstractAssetsRepository::whatProvides() should be compatible with ComposerRepositoryComposerRepository::whatProvides(ComposerDependencyResolverPool $pool, $name, $bypassFilters = false)

                Can someone help me how to fix this?

                Here's my composer.json

                {
                    "name": "yiisoft/yii2-app-advanced",
                    "description": "Yii 2 Advanced Project Template",
                    "keywords": ["yii2", "framework", "advanced", "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",
                        "yiisoft/yii2": ">=2.0.6",
                        "yiisoft/yii2-bootstrap": "*",
                        "yiisoft/yii2-swiftmailer": "*",
                        "kartik-v/yii2-widget-fileinput": "@dev",
                        "golonka/bbcodeparser": "^2.2"
                    },
                    "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"
                        }
                    }
                }
                

                解决方案

                About nine days ago (around end of March, 2016), ComposerRepositoryComposerRepository::whatProvides api changed. (#2668) So, if you have installed fxp/composer-asset-plugin globally, you should update it. You can do that with:

                php composer.phar global update fxp/composer-asset-plugin --no-plugins
                

                这篇关于Composer 抛出 [ReflectionException] Class FxpComposerAssetPluginRepositoryNpmRepository 不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                1. <legend id='3RBOa'><style id='3RBOa'><dir id='3RBOa'><q id='3RBOa'></q></dir></style></legend>

                        <small id='3RBOa'></small><noframes id='3RBOa'>

                          <tbody id='3RBOa'></tbody>
                        <i id='3RBOa'><tr id='3RBOa'><dt id='3RBOa'><q id='3RBOa'><span id='3RBOa'><b id='3RBOa'><form id='3RBOa'><ins id='3RBOa'></ins><ul id='3RBOa'></ul><sub id='3RBOa'></sub></form><legend id='3RBOa'></legend><bdo id='3RBOa'><pre id='3RBOa'><center id='3RBOa'></center></pre></bdo></b><th id='3RBOa'></th></span></q></dt></tr></i><div id='3RBOa'><tfoot id='3RBOa'></tfoot><dl id='3RBOa'><fieldset id='3RBOa'></fieldset></dl></div>
                        <tfoot id='3RBOa'></tfoot>
                          <bdo id='3RBOa'></bdo><ul id='3RBOa'></ul>