windows下命令行composer 提示创建进程失败
composer
//或者composer install...
报错如下:
Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): CreateProcess failed, error code - 0'
in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:996
Stack trace:
#0 [internal function]: ComposerUtilErrorHandler::handle(2, 'proc_open(): Cr...', 'phar://C:/Progr...', 996, Ar
ray)
#1 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php(996): proc_open('
mode CON', Array, NULL, NULL, NULL, Array)
#2 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php(751): SymfonyCom
ponentConsoleApplication->getConsoleMode()
#3 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php(717): SymfonyCom
ponentConsoleApplication->getTerminalDimensions()
#4 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php(650): SymfonyCom
ponentConsoleApplication->getTerminalWidth()
#5 phar://C:/ProgramData/ComposerSetup/bin/composer.p in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/ve
ndor/symfony/console/Application.php on line 996
在没有composer.json
的目录下执行命令则一切正常。克隆laravel
到本地执行命令同样报错。
搜索到的问题基本都是空间不足的原因,如fork failed errors memory limt errors
. github上搜索到同样问题一个,2013年的,至今没有解答。
php
版本为5.6.16
。wamp集成的,compose是官方最新。
php.ini
配置一切正常,没有禁用,memory-limit
也调整至足够大。
感谢!!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…