Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer neither installing nor updating RecursiveDirectoryIterator Cannot find path specified

Tags:

composer-php

I have been trying to update / install with composer on my windows7 64 bit machine. But lately I am getting this errors:

$ 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)

I have tried to remove the vendor directory as well as empty the composer cache but this didn't solve the issue.

Any suggestions?

like image 820
sanders Avatar asked Jun 10 '14 21:06

sanders


1 Answers

My problem was that I moved a directory which enabled colors in cmd.exe. Now the directory was not linked properly anymore.

Check out https://getcomposer.org/doc/articles/troubleshooting.md#-the-system-cannot-find-the-path-specified-windows- and also check for invalid paths.

like image 106
Philippe Gerber Avatar answered Nov 20 '22 18:11

Philippe Gerber