首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >正在尝试安装cartalyst/data-grid

正在尝试安装cartalyst/data-grid
EN

Stack Overflow用户
提问于 2014-05-29 11:11:10
回答 1查看 1.3K关注 0票数 1

我只是想知道这种情况是否发生在任何人身上,以及他们是如何解决的。

我正在尝试从Cartalyst安装数据网格,遵循this-manual

不管怎么说。当我到达必须安装或更新的步骤时,命令提示符会显示这些错误或消息。

如果我运行"composer install":

代码语言:javascript
复制
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“。*

代码语言:javascript
复制
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。

代码语言:javascript
复制
{
"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的数据网格扩展,因为我已经使用过它们,但不喜欢它们。但我确实想要一个网格,是可排序的,并有集成搜索。

EN

回答 1

Stack Overflow用户

发布于 2014-07-29 14:22:13

尝试将“最小稳定性”从“稳定”更改为“开发”,并添加“首选稳定”:true,但请注意,数据网格需要cartalyst订阅(每3个月花费75美元)

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23925112

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档