0

プロジェクト内で jquery DataTables を使用したいと考えています。パッケージは Packagist で利用できないため、composer を使用して DataTables の git リポジトリを複製しようとしていますが、失敗します。進め方を教えてください:

{
"repositories": [
    {
        "type": "vcs",
        "url":  "https://github.com/DataTables/DataTables"
    }
],
"require": {
    "DataTables/DataTables": "master"
    }
}

次に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 datatables could not be found in any version, 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.

さらに、レポの特定のバージョンを複製/ダウンロードしたいと思います。

4

2 に答える 2

0

https://github.com/DataTables/DataTables/blob/master/component.jsonのパッケージ名は DataTables/DataTables ではありません

試す

"require": {
    "DataTables": "dev-master"
}
于 2013-12-04T06:44:52.370 に答える