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 不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                Joomla include database functions(Joomla 包含数据库功能)
                nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)

                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>