1

これが誰かに起こったのか、どうやって解決できたのか疑問に思っています。

このマニュアルに従って、Cartalyst から data-grid をインストールしようとしています。

ともかく。インストールまたは更新する必要があるステップに到達すると、コマンドプロンプトにこれらのエラーまたはメッセージが表示されます。

「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 ではない別のデータ グリッド拡張機能を提案します。しかし、ソート可能で検索機能が統合されたグリッドが必要です。

4

1 に答える 1