kentuck1213
@kentuck1213

Composer не видит только что добавленную зависимость?

composer.json:
....
"require": {
....
        "mcamara/laravel-localization": "1.1.*"
    },
....

Добавил зависимость. Затем composer install :
alexander@alexander-Lenovo-G505:~/my_projects/lara.local$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
> php artisan clear-compiled
	> php artisan optimize
	Generating optimized class loader

Вообщем он не видит только что добавленную зависимость. Как это фиксить ?
  • Вопрос задан
  • 689 просмотров
Решения вопроса 1
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.


install command checks if a lock file is present, and if it is, it downloads the versions specified there (regardless of what composer.json says).
https://getcomposer.org/doc/01-basic-usage.md#inst...
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы