Composer - Forked Laravel 4.2 not installing

与世无争的帅哥 提交于 2019-12-23 19:20:33

问题


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.

My steps:

  • 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 composer install

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?


回答1:


You need to install patchwork/utf8 package.

In the require section in your composer.json add: "patchwork/utf8": "1.2.*" and then do composer update.



来源:https://stackoverflow.com/questions/34616294/composer-forked-laravel-4-2-not-installing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!