简体   繁体   English

找不到 zip 扩展名和 unzip/7s 命令

[英]Can not find zip extension and unzip/7s commands

Creating a web project using Xampp and Composer.使用 Xampp 和 Composer 创建一个 web 项目。

Whenever I try to run the Composer command:每当我尝试运行 Composer 命令时:

C:\> composer create-project laravel/laravel <project name>

It gives me a diagnostic message saying that zip extension and unzip/7s commands are missing.它给了我一条诊断消息,指出缺少 zip 扩展名和 unzip/7s 命令。 The command does create a project but then it doesn't connect with SQL in XAMPP.该命令确实创建了一个项目,但随后它没有连接到 XAMPP 中的 SQL。

Due to the zip extension and unzip/7s commands missing it doesn't install required packages to make the project run.由于缺少 zip 扩展和 unzip/7s 命令,它不会安装使项目运行所需的包。

I have tried uninstalling and reinstalling Composer but the error persists.我尝试卸载并重新安装 Composer,但错误仍然存在。 I am using php 8.2我正在使用 php 8.2

Referring to the comments above, the problem was in the php.ini file.参考上面的评论,问题出在php.ini文件中。 The zip extension was disabled, you need to enable the zip extension in php.ini. zip扩展被禁用,需要在php.ini中启用zip扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM