Composer install: error on temporary file

柔情痞子 提交于 2019-12-12 02:37:38

问题


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.


回答1:


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




回答2:


Also in order to clarify your TEMP directory run echo %TEMP%. Copy the output directory in terminal and paste it to sys_temp_dir in your php.ini exactly as it was said above.



来源:https://stackoverflow.com/questions/34741530/composer-install-error-on-temporary-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!