【问题标题】:issue with Userfrosting & Composer - no matching packagesUserfrosting & Composer 的问题 - 没有匹配的包
【发布时间】:2017-03-14 18:45:45
【问题描述】:

刚刚完成了 Userfrosting 4 教程。基本应用程序已启动并运行,现在正在“您的第一个 UserFrosting 站点”下创建第一个洒。

在运行 composer update 我得到以下信息:

Loading composer repositories with package information

更新依赖项(包括 require-dev)
您的需求无法解析为一组可安装的软件包。

 Problem 1
- userfrosting/config dev-master requires userfrosting/support ^4.0.0 -> no matching package found.
- userfrosting/config dev-master requires userfrosting/support ^4.0.0 -> no matching package found.
- Installation request for userfrosting/config dev-master -> satisfiable by userfrosting/config[dev-master].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting

我已将我的代码替换为教程中复制/粘贴的代码,但仍然出现错误。我完全不知道从这里去哪里 - 任何指针都将不胜感激。

【问题讨论】:

    标签: composer-php userfrosting


    【解决方案1】:

    确保您拥有最新版本(截至目前为 4.0.11-alpha),因为组件版本在最近的版本中已更改/修复。

    核心composer.json 文件不应再使用userfrosting/config 组件的dev-master 版本,而应使用4.0.x 版本之一。请参阅:https://github.com/userfrosting/UserFrosting/blob/master/app/sprinkles/core/composer.json#L31。如果你有一个自定义的 ^composer.json` 文件在你的洒,你不需要再次添加核心作曲家文件中定义的包。

    话虽如此,如果您仍然遇到一些问题,您可以尝试运行 composer clear-cache,因为 composer 可能缓存了一些过时的信息。

    【讨论】:

    • 谢谢路易斯。请原谅我的无知,但升级到最新版本的最佳/推荐方式是什么?
    • 如果您克隆了 git 存储库,只需提取最新的更改即可。您也可以通过chat 获得更多帮助。
    猜你喜欢
    • 1970-01-01
    • 2017-05-27
    • 2015-04-18
    • 2018-04-09
    • 2011-04-06
    • 2017-04-07
    • 2021-07-13
    • 2016-11-21
    • 1970-01-01
    相关资源
    最近更新 更多