Composer既不安装也不更新RecursiveDirectoryIterator无法找到指定的路径

时间:2014-06-10 21:06:23

标签: 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)
    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)

我试图删除供应商目录以及清空作曲家缓存,但这并没有解决问题。

有什么建议吗?

2 个答案:

答案 0 :(得分:3)

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

结帐https://getcomposer.org/doc/articles/troubleshooting.md#-the-system-cannot-find-the-path-specified-windows-并检查无效路径。

答案 1 :(得分:0)

供应商文件夹中可能存在写权限错误。

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