Composer-未安装分叉的Laravel 4.2 [英] Composer - Forked Laravel 4.2 not installing
问题描述
我已经从Github克隆了Laravel 4.2分支并将其推送到私有的GitLab服务器.我已经从4.2创建了一个名为dev-bugfix的新分支,并在1个文件中添加了注释,以查看作曲家是否会安装我的叉子而不是官方的Laravel.
I have cloned the Laravel 4.2 branch from Github and pushed it to a private GitLab server. I've created a new branch from 4.2 with the name dev-bugfix and added a comment in 1 file to see if composer would install my fork and not the official Laravel.
我的步骤:
- Github的克隆Laravel 4.2分支
- 将存储库推送到私有的GitLab服务器
- 在现有的Laravel应用程序中,删除了composer.lock,运行composer dump-autoload并删除了整个供应商文件夹
-
编辑了composer.json以包含我的私人仓库:
- Cloned Laravel 4.2 branch from Github
- Pushed the repo to a private GitLab server
- In an existing Laravel application, removed composer.lock, ran composer dump-autoload and removed the entire vendor folder
Edited composer.json to include my private repo:
"repositories": [{
"type": "package",
"package": {
"version": "dev-bugfix",
"name": "laravel/framework",
"source": {
"url": "my-gitlab-repo",
"type": "git",
"reference": "dev-bugfix"
}
}
}],
"require": {
"laravel/framework": "dev-bugfix",
"barryvdh/laravel-debugbar": "~1.8"
},
Ran作曲家安装
Ran composer install
Composer从克隆我的Laravel-framework分支开始,此后它会安装一些依赖项.然后,Artisan希望清除编译失败的地方.完整的输出单击
Composer starts with cloning my fork of Laravel-framework after which it installs a few dependencies. Then, Artisan wants to clean compiled, where it fails. Complete output click
我想念什么?我在做什么错了?
What am I missing? What am I doing wrong?
推荐答案
您需要安装 patchwork/utf8 包.
在composer.json的require
部分中添加:"patchwork/utf8": "1.2.*"
,然后执行composer update
.
In the require
section in your composer.json add: "patchwork/utf8": "1.2.*"
and then do composer update
.
这篇关于Composer-未安装分叉的Laravel 4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!