Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
591 views
in Technique[技术] by (71.8m points)

php composer 提示创建进程失败?

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也调整至足够大。
    感谢!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

不知是否是国外镜像,尝试使用国内镜像


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...