在您的php.ini中设置sys_temp_dir
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的系统上,php函数
sys_get_temp_dir()
代码> C:\ Program Files \ KMSPICO \ temp; c:\ xampp \ php \ tmp “。当然,这是一个错误的配置,因为它包含两个与半隆(“
;
>”串联的路径名):c:\ program Files \ kmspico \ temp
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 ("
;
"):C:\Program Files\KMSpico\temp
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)?