在composer完成闪烁光标和空闲cpu之后,composer(install,update,create-project ...)的执行会挂起 - 但批处理脚本不会退出。可以用ctrl + c结束进程。
我的大多数Laravel和Symfony项目都出现问题,似乎不依赖于某个composer.json / .lock
示例:
composer create-project --prefer-dist laravel/laravel testapp
cd testapp
composer install
两者都不会退出
使用--profile会显示以下结果:
C:\dev\killme>composer install --profile
[7.2MB/0.01s] Loading composer repositories with package information
[7.5MB/0.01s] Installing dependencies (including require-dev) from lock file
[8.5MB/0.04s] Nothing to install or update
[7.7MB/0.05s] Generating optimized autoload files
[9.6MB/7.26s] > Illuminate\Foundation\ComposerScripts::postAutoloadDump
[11.0MB/7.28s] > @php artisan package:discover
[11.1MB/7.69s] Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Package manifest generated successfully.
[10.0MB/7.71s] Memory usage: 9.99MB (peak: 11.53MB), time: 7.71s
- (blinking cursor - batch won't end)
^C cancel batch process (Y/N)? ^C
答案 0 :(得分:0)
以下更改对我有用:
从PHP 7.0.18更新到7.1.11(XAMPP)