Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Composer php 编写器安装或更新RecursiveDirectoryIterator都找不到指定的路径_Composer Php - Fatal编程技术网

Composer php 编写器安装或更新RecursiveDirectoryIterator都找不到指定的路径

Composer php 编写器安装或更新RecursiveDirectoryIterator都找不到指定的路径,composer-php,Composer Php,我一直在尝试在windows7 64位计算机上使用composer进行更新/安装。但最近我发现了这样的错误: $ php composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev) - Installing zendframework/zendxml (dev-master 559b34f) Cl

我一直在尝试在windows7 64位计算机上使用composer进行更新/安装。但最近我发现了这样的错误:

$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing zendframework/zendxml (dev-master 559b34f)
    Cloning 559b34f426d33a11c3db118e00ce14bb8dc64e5f
Failed to download zendframework/zendxml from source: RecursiveDirectoryIterator
::__construct(C:\wamp\www\projects\vendor\zendframework\zendxml,C:\wamp\www\projects\vendor\zendframework\zendxml): The system cannot find the path specified. (
code: 3)
Now trying to download from dist
  - Installing zendframework/zendxml (dev-master 559b34f)
    Downloading: 100%



  [UnexpectedValueException]
  RecursiveDirectoryIterator::__construct(C:\wamp\www\projects\vendor/zendfra
  mework/zendxml,C:\wamp\www\projects\vendor/zendframework/zendxml): The syst
  em cannot find the path specified. (code: 3)
我试图删除供应商目录并清空composer缓存,但这并没有解决问题


有什么建议吗?

可能是供应商文件夹中的写入权限错误


停止Apache并删除文件夹/vendor/zendframework,然后再次运行composer install。

我的问题是我移动了一个目录,该目录在cmd.exe中启用了颜色。现在该目录不再正确链接


签出并检查无效路径。

在之前安装Ansicon后,我也遇到了同样的问题。从HKEY_CURRENT_USER\Software\Microsoft\Command Processor下删除自动运行项的技巧修复了该问题。