A
A
Andrei St2019-12-08 23:50:54
Laravel
Andrei St, 2019-12-08 23:50:54

How to fix composer dependency packages errors?

During the installation of dependency packages, an error occurs at the last stage, what is it connected with and how to fix it?

Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In Parser.php line 120:

  Dotenv values containing spaces must be surrounded by quotes.


Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

As I understand it, Carbon is outdated, but when the upgrade-carbon file is executed
, an error occurs!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gupovski, 2019-12-09
@gupovski

Error in .env file, multi-word values ​​must be enclosed in quotes

N
Nikolai Smirnov, 2019-12-11
@Bzdykin

An old version of one of the packages you are using in your project uses an outdated Carbon. Set in the composer.json file to download the latest packages. Next, run composer update and the error with Carbon will be resolved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question