Composer does not install or update RecursiveDirectoryIterator Cannot find the specified path

I am trying to update / install using composer on my 64-bit Windows7 machine. But lately, I am getting the following 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 tried to delete the provider directory and also delete the composer's cache, but this did not solve the problem.

Any suggestions?

+7
composer-php
source share
2 answers

My problem was that I moved the directory that included the colors in cmd.exe. Now the directory was no longer linked.

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

+3
source share

There may be an error with write permissions in the provider folder.

Stop Apache and delete the / vendor / zendframework folder and run the composer installation again.

0
source share

All Articles