композитор не обновляет зависимость с люмен - PullRequest
0 голосов
/ 01 ноября 2018

Я использую версию php 5.6.12, Я должен обязательно использовать эту версию.

рабочая команда: composer update

это показывает мне, как показано ниже,

Loading composer repositories with package information
Updating dependencies (including require-dev)

Он показывает это только это долгое время, а не обновляет зависимость от моих пакетов

мой пакет файла composer.json, как показано ниже,

"require": {
        "php": ">=5.5.9",
        "laravel/lumen-framework": "5.2.*",
        "vlucas/phpdotenv": "~2.2",
        "google/apiclient": "^2.0",
        "maatwebsite/excel": "~2.1.0",
        "googleads/googleads-php-lib": "^32.1",
        "aws/aws-sdk-php-laravel": "~3.0",
        "baopham/dynamodb": "^4.11",
        "laravelista/lumen-vendor-publish": "^2.1",
        "jenssegers/mongodb": "3.2.*",
        "php-imap/php-imap": "^3.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "phpunit/phpunit": "~5.0",
        "mockery/mockery": "~0.9"
    },

Я выполнил команду composer update -vvv, она выдает ошибку ниже,

Reading ./composer.json
Loading config file ./composer.json
Checked CA file E:\xampp7\apache\bin\curl-ca-bundle.crt: valid
Executing command (E:\xampp563\htdocs\delrentals-dashboard-api): git branch --no-color --no-abbrev -v
Failed to initialize global composer: Composer could not find the config file: C:/Users/hetal.gohel/AppData/Roaming/Composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Running 1.7.2 (2018-08-16 16:57:12) with PHP 7.0.27 on Windows NT / 6.1
Loading composer repositories with package information
Downloading https://repo.packagist.org/packages.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2015.json from cache
Downloading http://repo.packagist.org/p/provider-2016%2421f5855cc4abf8648b47c77d76fee501bfc9fd4d893d6a602e8c8dbd0c4ea0ff.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2016.json into cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2017.json from cache
Downloading http://repo.packagist.org/p/provider-2018-01%24ebbeedf5cdf822efb5bb90b0b147c964df3e11e74d453bbdb6b04b537c180a7e.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-01.json into cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-04.json from cache
Downloading http://repo.packagist.org/p/provider-2018-07%240016a26f1005f0fb0be2f409b3fc05dde3132eb7694bc50e386e2a6be4802ee6.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-07.json into cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-10.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-archived.json from cache
Downloading http://repo.packagist.org/p/provider-latest%242eb9ff7604840d5f7b019a1d5770e987526594ecf1528f5fe6b613654914d5c4.json

......

У меня есть файл composer.json с пустым объектом "{}" в локации C:\Users\hetal.gohel\AppData\Roaming\Composer

Loading config file ./composer.json
Checked CA file E:\xampp7\apache\bin\curl-ca-bundle.crt: valid
Executing command (E:\xampp563\htdocs\delrentals-dashboard-api): git branch --no-color --no-abbrev -v
Reading C:/Users/hetal.gohel/AppData/Roaming/Composer/composer.json
Loading config file C:/Users/hetal.gohel/AppData/Roaming/Composer/composer.json
Running 1.7.2 (2018-08-16 16:57:12) with PHP 7.0.27 on Windows NT / 6.1
Loading composer repositories with package information
Downloading https://repo.packagist.org/packages.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2017.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-01.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-04.json from cache
Downloading http://repo.packagist.org/p/provider-2018-07%24456764a723221fb097b4ae41ef2ce7d91d1207de7b45ed8301c2e0bf1c55387e.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-07.json into cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-2018-10.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-archived.json from cache
Downloading http://repo.packagist.org/p/provider-latest%245fb6a563ef29d0728dfbcf5cc60a8e56619893d5635943fb610b74eb55281719.json
Writing C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/p-provider-latest.json into cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/provider-laravel$lumen.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/provider-laravel$lumen-framework.json from cache
Reading C:/Users/hetal.gohel/AppData/Local/Composer/repo/https---repo.packagist.org/provider-illuminate$auth.json from cache

.....

выдает еще ошибку

1 Ответ

0 голосов
/ 01 ноября 2018

Хорошо, позвольте мне подвести итог.

Создайте файл composer.json в C:/Users/hetal.gohel/AppData/Roaming/Composer/composer.json. Просто заполните его пустым объектом json {}. А затем запустите composer update -vvv, чтобы увидеть процесс обновления в деталях. Просто подождите, пока это не будет сделано. Если процесс обновления занимает слишком много времени, возможно, вам следует добавить зависимость пакета один за другим.

...