我只是想知道这种情况是否发生在任何人身上,以及他们是如何解决的。
我正在尝试从Cartalyst安装数据网格,遵循this-manual。
不管怎么说。当我到达必须安装或更新的步骤时,命令提示符会显示这些错误或消息。
如果我运行"composer install":
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json.
You may be getting outdated dependencies. Run update to update them.
Generating autoload files
Generating optimized class loader如果我在数据网格版本为2.0时运行"composer update“。*
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package cartalyst/data-grid could not be found in any versio
n, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
problems.如果我对任何其他版本运行"composer update“,它只会显示找不到存储库。
为了补充这个帖子,下面是我的composer.json。
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*",
"cartalyst/data-grid": "dev-master",
"dompdf/dompdf": "dev-develop"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.cartalyst.com"
}
],
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}如果能帮上忙我会很感激的。或者至少建议使用另一个不是phpGrid或jQGrid的数据网格扩展,因为我已经使用过它们,但不喜欢它们。但我确实想要一个网格,是可排序的,并有集成搜索。
发布于 2014-07-29 14:22:13
尝试将“最小稳定性”从“稳定”更改为“开发”,并添加“首选稳定”:true,但请注意,数据网格需要cartalyst订阅(每3个月花费75美元)
https://stackoverflow.com/questions/23925112
复制相似问题