Composer不工作尝试在Packagist中注册后获取自己的包

时间:2014-11-28 15:22:40

标签: composer-php packagist

首先是一些背景,我正在处理一个本地项目,我上传到Github并在Packagist注册。 作曲家正在安装dependecies for development

但是当我在Packagist中注册后试图抓住我自己的包时会出现问题

我收到错误

这是我使用的命令:

➜  test  composer global require AA/AA:dev-master

这是错误:

PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
Changed current directory to /home/a/.composer
./composer.json has been updated
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
    - Installation request for AA/AA dev-master -> satisfiable by AA/AA
[dev-master].
        - AA/AA dev-master requires hamcrest/hamcrest-php dev-master -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

这是我在GitHub中的composer.json:

{ 
    "name": "AA/AA",
    "description": "AA",
    "require": {
        "php": ">=5.4.0",
        "hamcrest/hamcrest-php": "dev-master"
    },
    "license": "MIT",
    "authors": [
        {
            "name": "AA",
            "email": "AA@gmail.com"
        }
    ],
    "autoload": {
        "psr-4": { "AA\\": "src/" }
    }
}

0 个答案:

没有答案