我的Symfony 4.3项目和作曲家出了点问题。每当我尝试安装、删除或执行任何操作时,它都会停在"Executing script cache:clear“部分,并一直停在那里,直到超时。我试着将超时时间增加到像2000这样疯狂的值,但没有帮助,它只是停留在那里。
有人知道怎么解决这个问题吗?
λ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process ""C:\wamp\bin\php\php7.3.9\php.exe" "--php-ini=C:\wamp\bin\php\php7.3.9\php.ini" "./bin/
console" --ansi cache:clear" exceeded the timeout of 300 seconds.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...我尝试手动删除var/cache内容,但无济于事。我一直在谷歌上寻找答案,堆栈溢出。
发布于 2019-09-24 07:41:46
我找到我的问题了。在我的twig.yaml中,我有node_modules文件夹路径。我在测试css文件时忘了删除它,当cache:clear执行预热时,它确实在处理100k的文件夹和文件。这就解释了为什么300秒是不够的,即使我将其设置为2000秒,我打赌它仍然会超时。
经验教训:小心你的树枝配置!
发布于 2020-07-10 19:17:48
我希望这能对你有所帮助,尝试这样做
composer install --首选--dist --no-scripts -vvv
https://stackoverflow.com/questions/58071207
复制相似问题