A
A
Alexander2016-06-06 15:56:10
Composer
Alexander, 2016-06-06 15:56:10

Composer doesn't see newly added dependency?

composer.json:

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

Added a dependency. Then composer install :
[email protected]:~/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

In general, he does not see the newly added dependency. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-06-06
@kentuck1213

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...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question