我有一个带库的存储库.它可以成功克隆.
$ 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) 我第一次尝试使用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.