错误符号安装”该档案可能包含具有不同资本化的相同文件名。

发布于 2025-02-05 17:17:53 字数 919 浏览 1 评论 0原文

我正在尝试创建一个新的Symfony项目。 当我启动安装程序时:Symfony New SitePro -version = 6.0。* - Webapp 安装开始,但有2个错误:

      [RuntimeException]
  The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems): ZipArchive::extractTo(C:\User
  s\Shiyo\Desktop\Pro\Projets\sitepro/vendor/composer/b67ec329/php-fig-cache-aa5030c/LICENSE.txt): Failed to open stream: Permission denied



  [ErrorException]
  ZipArchive::extractTo(C:\Users\Shiyo\Desktop\Pro\Projets\sitepro/vendor/composer/b67ec329/php-fig-cache-aa5030c/LICENSE.txt): Failed to open stream: Pe
  rmission denied

 unable to run C:\composer\composer.phar create-project symfony/skeleton C:\Users\Shiyo\Desktop\Pro\Projets\sitepro 6.0.* --no-interaction

我正在Windows 10,PHP 8.1.6上工作。 我尝试了Coposer ClearCache,卸载并安装了7个ZIP,并且我拥有此文件夹的所有权限,所以我真的不明白为什么我有这个错误。 感谢您的帮助!

I'm trying to create a new Symfony project.
When I launch the installer: symfony new sitepro --version=6.0.* --webapp
The installation start but then there is 2 errors:

      [RuntimeException]
  The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems): ZipArchive::extractTo(C:\User
  s\Shiyo\Desktop\Pro\Projets\sitepro/vendor/composer/b67ec329/php-fig-cache-aa5030c/LICENSE.txt): Failed to open stream: Permission denied



  [ErrorException]
  ZipArchive::extractTo(C:\Users\Shiyo\Desktop\Pro\Projets\sitepro/vendor/composer/b67ec329/php-fig-cache-aa5030c/LICENSE.txt): Failed to open stream: Pe
  rmission denied

 unable to run C:\composer\composer.phar create-project symfony/skeleton C:\Users\Shiyo\Desktop\Pro\Projets\sitepro 6.0.* --no-interaction

I'm working on Windows 10, php 8.1.6.
I tried composer clearcache, to uninstall and install 7-Zip and I have all the permissions for this folder so I really don't get why I have this error.
Thanks for your help!

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

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

发布评论

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

评论(2

白首有我共你 2025-02-12 17:17:53

问题是Windows的桌面文件夹。它具有特殊权利。我尝试在另一个文件夹上,它可以很好地工作!

The problem was the Desktop folder of Windows. It has special rights. I tried on an other folder and it work perfectly!

樱花坊 2025-02-12 17:17:53

是的,这是文件夹上的权限问题。基本上,由于以下原因之一,您无法将其写入该文件夹:

  1. 有一个使用该文件夹的过程。例如,如果XAMPP正在运行,并且您正在尝试在HTDOC中创建一个新项目,那么您很可能会遇到此错误,因为XAMPP正在使用该文件夹。解决方案是关闭使用该文件夹的应用程序,您应该能够在没有任何问题的情况下写入该文件夹。
  2. 您使用的用户对文件夹的权限不足。解决方案是使用特权用户或找到将用户写入文件夹写入权限的方法。

Yes, it is a permissions issue on the folder. Basically, you can't write to that folder due to one of the following reasons:

  1. There is a process that is using the folder. For instance, if xampp is running and you are trying to create a new project in htdocs, you will most likely encounter this error because xampp is using the folder. Solution is to close whichever application is using the folder and you should be able to write to that folder without any problems.
  2. The user you are using has insufficient permissions to the folder. Solution is to use a privileged user or find a way to give your user write permissions to the folder.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文