doujiao1984 2017-07-06 14:11
浏览 522

composer install --prefer-source不起作用

I have a problem.I want to tell you with code. Problem : composer install --prefer-source

Official Definition :will install the packages from their source which is usually a GitHub or a Subversion repository. In other words, it clones the package's source. In the case where the repository is not found on the vcs, it falls back to the installation from dist.

it is okey.no problem.

my composer.json is

    {
    "name": "root/composer",
    "require": {
        "blabla/url": "dev-master",
        "monolog/monolog": "^1.23"
    },
    "repositories" : [
        {
            "type" : "vcs",
            "url"  : "blabla/url"
        }
    ]
}

this is my composer.json file.The following code is run on terminal

composer install

Cloning repository blabla/url on git is SUCCESSFULL!!!

Packagist for 'blabla/url' is available. but is not same with git repository

the above code worked for git repository.

Now..I change my composer.json file.

{
    "name": "root/composer",
    "require": {
        "blabla/url": "dev-master",
        "monolog/monolog": "^1.23"
    }
}

this is my composer.json file.The following code is run on terminal.

composer install --prefer-source

this code worked for packagist,does not work for git repository

but Do not you need to upload it via git repository?

What is problem?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 vs2019中数据导出问题
    • ¥20 云服务Linux系统TCP-MSS值修改?
    • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)
    • ¥20 怎么在stm32门禁成品上增加查询记录功能
    • ¥15 Source insight编写代码后使用CCS5.2版本import之后,代码跳到注释行里面
    • ¥50 NT4.0系统 STOP:0X0000007B
    • ¥15 想问一下stata17中这段代码哪里有问题呀
    • ¥15 flink cdc无法实时同步mysql数据
    • ¥100 有人会搭建GPT-J-6B框架吗?有偿
    • ¥15 求差集那个函数有问题,有无佬可以解决