相关疑难解决方法(0)

无法在Windows上的作曲家中使用远程存储库

我有一个带库的存储库.它可以成功克隆.

$ git clone file:////remote/repo/library
$ cd library
$ composer validate
./composer.json is valid, but with a few warnings
Run Code Online (Sandbox Code Playgroud)

但似乎这个转座不能通过作曲家包含来使用.

...
"repositories": [
    {
        "type": "git",
        "url": "file:////remote/repo/library"
    }]
 ...
Run Code Online (Sandbox Code Playgroud)

试图安装

$ composer install -vvv
... 
Loading composer repositories with package information
Executing command (//remote/repo/library): git show-ref --tags
Executing command (//remote/repo/library): git branch --no-color --no-abbrev -v
Executing command (//remote/repo/library): git branch --no-color
Executing command (//remote/repo/library): git show "master":composer.json

  [Composer\Repository\InvalidRepositoryException]
  No valid composer.json was found in any branch or tag of …
Run Code Online (Sandbox Code Playgroud)

php windows git composer-php

14
推荐指数
2
解决办法
915
查看次数

composer忽略了installer-paths配置

我第一次尝试使用CakePHP与作曲家,但我有一些问题.

我有这个composer.json:

{
  "name": "example.com.br",
  "repositories": [
    {
      "type": "pear",
      "url": "http://pear.cakephp.org"
    }
  ],
  "config": {
    "vendor-dir": "Vendor/"
  },
  "require": {
    "php": ">=5.4",
    "pear-cakephp/cakephp": ">=2.4.3",
    "cakephp/debug_kit": "2.2.*",
    "smottt/wideimage": "dev-master"
  },
  "extra": {
    "installer-paths": {
      "app/Plugin/DebugKit": ["cakephp/debug_kit"],
      "app/Vendor/Wideimage": ["smottt/wideimage"]
    }
  }  
}
Run Code Online (Sandbox Code Playgroud)

当我跑步时composer install (or update) --prefer-dist,一切正常,除了smottt/wideimage.

此软件包正在安装在该/Vendor文件夹中/app/Vendor,因此,忽略installer-paths.

php cakephp composer-php

8
推荐指数
3
解决办法
5967
查看次数

标签 统计

composer-php ×2

php ×2

cakephp ×1

git ×1

windows ×1