简体   繁体   English

Windows 7(x64)PHP 5.4.7上的Composer

[英]Composer on Windows 7 (x64) PHP 5.4.7

I'm not new in composer and PHP I already used it a lot of time on Linux and on Windows too, but today I encountered a problem. 我在composer和PHP中并不陌生,我已经在Linux和Windows上使用了很多时间,但是今天我遇到了一个问题。

Today I tried to use composer update / composer install on my Windows 7 and then I got an exception: " Composer could not find the config file: " it is strange, because it was working few days ago. 今天,我尝试在Windows 7上use composer update / composer install ,然后出现一个异常:“ Composer找不到配置文件: ”这很奇怪,因为它已经在几天前工作了。

I tried use the newest composer.phar and also tried use composer installed by Composer-Setup.exe, also I tried put composer.phar on different location (project location etc) it always throwing me the same exception. 我尝试使用最新的composer.phar,也尝试使用由Composer-Setup.exe安装的composer,也尝试将composer.phar放在不同的位置(项目位置等),这总是使我抛出相同的异常。

When I run composer validate command I've got: ./composer.json is valid , so composer.json was found and is valid. 当我运行composer validate命令时,我得到: ./composer.json有效 ,因此composer.json被发现且有效。

Thanks for all answers 感谢所有答案

delete composer path and variable from enviroment variables and reboot (restart) Windows. 从环境变量中删除作曲家路径和变量,然后重新启动(重新启动)Windows。 Then add variable and path again 然后再次添加变量和路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM