作曲家的执行(安装、更新、创建项目...(在作曲家完成闪烁的光标和空闲的 CPU 后挂起 - 但批处理脚本不会退出。可以使用 ctrl+c 结束该过程。
这个问题发生在我的大多数Laravel和Symfony项目中,似乎不依赖于某个作曲家.json/.lock
- 窗口 10
- XAMPP PHP 7.0.18
- 多次卸载/重新安装作曲家。
例子:
composer create-project --prefer-dist laravel/laravel testapp
cd testapp
composer install
两者都不会退出
使用 --profile 显示以下结果:
C:devkillme>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] > IlluminateFoundationComposerScripts::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
以下更改对我有用:
从 PHP 7.0.18 更新到 7.1.11 (XAMPP(