我正在学习Userfrosting 4教程。基本的应用程序已经启动并运行,现在我在“你的第一个UserFrosting站点”下面创建了第一个Site。
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我已经用本教程中复制/粘贴的代码替换了我的代码,但仍然出现错误。我完全不知道下一步该怎么做--任何建议都将不胜感激。
发布于 2017-03-15 07:38:30
确保您拥有最新版本(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可能缓存了一些过时的信息。
https://stackoverflow.com/questions/42794128
复制相似问题