windowscomposer-phpruntimeexceptiontemporary-directory

Composer install: error on temporary file


I have a problem with windows 10 and composer (last version). When I want to execute command "composer install" in my project, a symphony error is thrown:

[Symfony\Component\Process\Exception\RuntimeException]
A temporary file could not be opened to write the process output to, verify that your TEMP environment variable is writable

My TEMP variable is "%USERPROFILE%\AppData\Local\Temp". The folder exists and permissions are good.

Can anyone help me to find the problem please?

Thank you.


Solution

  • Look into php.ini file for location of sys_temp_dir and check rights for this folder.