cannot install global packages on windows #2239

b01 opened this Issue Sep 7, 2013 · 2 comments


None yet
2 participants

b01 commented Sep 7, 2013

I'm trying to install phpunit or php-cs-fixer globally, I get this error message every time:

composer global require fabpot/php-cs-fixer:dev-master
tignore): The directory name is invalid. (code: 267)

I'm on a windows 7 (64-bit) machine.

Note: Installing PHPUnit in a project through the composer.json works fine.


singles commented Jul 20, 2014

It worked for me with Windows 8.1 (32 bit, VirtualBox) and XAMPP.

PS. I know that's a 1 year old issue but it's still open.

b01 commented Aug 8, 2014

Sorry I just noticed this today, ironically I just solved this issue for myself about 30 minutes ago. I needed to run composer in an elevated command prompt. That fixed the issue for me. It looks like the git clone command could not created the vendor folder in my user directory. So this is not even a composer issue.

@b01 b01 closed this Aug 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment