fopen错误时安装Composer for PHP (Windows 7)



我试图在Windows 7 Ultimate下安装Composer。不幸的是,每当我运行命令时,Composer都会生成一个fopen()异常(见下文)。

我的猜测是一个空的文件名正在某处传递,可能是配置错误的结果。

在测试中,我已经删除并重新安装了Composer,测试了两个PHP的版本和检查我的GitHub连接/更新接口。

错误的一个例子(无论我做什么都是一样的)如下:

?Composer -vvv diagnosis
检查平台设置:FAIL
加载了xdebug扩展,这可能会减慢Composer的速度。
建议使用Composer时禁用它。
检查git设置:执行命令:git config color。UI

[ErrorException]
fopen():文件名不能为空

异常跟踪:
() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/symfony/Component/process/Pipes/windowsppipes .php:55
作曲家UtilErrorHandler::handle() at n/a:n/a
fopen() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/symfony/Component/process/Pipes/windowsppipes .php:55
交响乐ComponentProcessPipesWindowsPipes->__construct() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/symfony/Component/process/Pipes/windowsppipes .php:172
交响乐ComponentProcessPipesWindowsPipes::create() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/symfony/Component/process/process .php:1264
交响乐ComponentProcessProcess->getDescriptors() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/symfony/Component/process/process .php:273
交响乐ComponentProcessProcess->start() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/symfony/Component/process/process .php:208
交响乐ComponentProcessProcess->run() at phar://C:/ProgramData/ComposerSetup/bin/Composer .phar/src/Composer/Util/processexexecutor .php:62
作曲家UtilProcessExecutor->execute() at phar://C:/ProgramData/ComposerSetup/bin/Composer .phar/src/Composer/Command/diagnoseccommand .php:166
作曲家CommandDiagnoseCommand->checkGit() at phar://C:/ProgramData/Composer setup/bin/Composer .phar/src/Composer/Command/diagnoseccommand .php:82
作曲家CommandDiagnoseCommand->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/symfony/Component/console/Command/Command.php:257
交响乐ComponentConsoleCommandCommand->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/symfony/Component/console/Application.php:874
交响乐ComponentConsoleApplication->doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/symfony/Component/console/Application.php:195
交响乐ComponentConsoleApplication->doRun() at phar://C:/ProgramData/ComposerSetup/bin/Composer .phar/src/Composer/Console/Application.php:146
作曲家ConsoleApplication->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/symfony/Component/console/Application.php:126
交响乐ComponentConsoleApplication->run() at phar://C:/ProgramData/ComposerSetup/bin/Composer .phar/src/Composer/Console/Application.php:82
作曲家ConsoleApplication->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:43
require() at C:ProgramDataComposerSetupbincomposer.phar:25

感谢所有帮助

问题解决:sys_temp_dir条目[php.ini]指向一个丢失的目录

相关内容

  • 没有找到相关文章

最新更新