Composer require "spatie/laravel-backup: ^ 3.0.0" reported an error

1.composer require "spatie/laravel-backup: ^ 3.0.0" prompt. / composer.lock "is not UTF-8, could not parse as JSON, indicates that my composer.lock is not in utf8 format and cannot parse the json data in it. I encountered this problem the first time I installed it.
2.
clipboard.png
3. Ask the boss for advice.


delete the composer.lock and try to execute again, or use an IDE such as phpstorm to convert the composer.lock file to UTF-8 character encoding and try again

Menu