1

我只是想知道这是否发生在任何人身上以及他们如何能够解决它。

我正在尝试按照this-manual从 Cartalyst 安装数据网格。

反正。当我进入必须安装或更新的步骤时,命令提示符会向我显示这些错误或消息。

如果我运行“作曲家安装”:

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 的数据网格扩展,因为我已经使用过它们并且不喜欢它们。但我确实想要一个可排序并集成搜索的网格。

4

1 回答 1

-1

尝试将“minimum-stability”从“stable”更改为“dev”并附加“prefer-stable”:true 但请注意数据网格需要订阅 cartalyst(每 3 个月花费 75 美元)

于 2014-07-29T06:22:13.477 回答