2

laravel 8中,我试图在我有php 版本 8.0.3的地方安装 laravel 发条,当我运行时

composer require itsgoingd/clockwork 

命令我得到了这个错误

安装 itsgoingd/clockwork (v5.0.8): Extracting archive 安装 itsgoingd/clockwork 失败

安装失败,正在将 ./composer.json 和 ./composer.lock 还原为其原始内容。

[UnexpectedValueException] 'C:\xampp\htdocs\test/vendor/composer/tmp-454cb94cbea8cdcf70c06a4e0164fbba' 不是 zip 存档。

需要 [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no -update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-依赖项] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [- -prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER -字首] [ - ] []...

4

1 回答 1

0

删除文件Composer.lock,然后运行这个命令行:

composer require itsgoingd/clockwork
于 2021-10-17T05:26:58.253 回答