在您的php.ini中设置sys_temp_dir

发布于 2025-02-07 09:03:45 字数 107 浏览 0 评论 0原文

php temp目录(c:\ program文件\ kmspico \ temp; c:\ xampp \ php \ tmp)不存在或对作曲家不明。在您的php.ini中设置sys_temp_dir

PHP temp directory (C:\Program Files\KMSpico\temp;C:\xampp\php\tmp) does not exist or is not writable to Composer. Set sys_temp_dir in your php.ini

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

活雷疯 2025-02-14 09:03:45

在您的系统上,php函数 sys_get_temp_dir() 代码> C:\ Program Files \ KMSPICO \ temp; c:\ xampp \ php \ tmp “。

当然,这是一个错误的配置,因为它包含两个与半隆(“ ;>”串联的路径名):

  1. c:\ program Files \ kmspico \ temp
  2. c:\ xampp \ php \ tmp

SEMICOLON这是 Windows Path saparator 。作曲家不支持它,它希望单个路径名。

检查您的PHP配置,可以用 sys_temp_dir设置

在那里有多个路径对我来说看起来像是一个错误的配置,但是在最近几十年中,我并没有使用太多窗户,所以无论这很常见,我的知识有点生锈。对我来说,这确实闻起来像是您盒子上的一些错误配置。

无论如何,拥有多个路径不是作曲家支持的配置。因此,您会看到错误消息。

您是否尝试将其重置为默认值(空字符串)?

您最近是否摆弄了TMP或TEMP环境参数?

On your system, the PHP function sys_get_temp_dir() returns the string "C:\Program Files\KMSpico\temp;C:\xampp\php\tmp".

This is certainly a misconfiguration as it contains two pathnames concatenated with a semicolon (";"):

  1. C:\Program Files\KMSpico\temp
  2. C:\xampp\php\tmp

The semicolon here is the Windows Path Separator. Composer does not support it, it expects a single pathname.

Check your PHP configuration, this can be controlled with the sys_temp_dir setting.

Having multiple paths there-in looks like a misconfiguration to me, but I'm not using Windows much in the recent decades, so my knowledge is a bit rusty whether this is common or not. For me this really smells like some misconfiguration on your box.

In any case, having multiple paths is not a configuration that Composer supports. Hence you see the error message.

Have you tried to reset it to the default value (empty string)?

Have you recently fiddled with the TMP or TEMP environment parameter(s)?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文