Speeding Up Laravel Tests with tmpfs (MySQL in RAM)
If your Laravel test suite is painfully slow and does a lot of database work (multi-tenancy, migrations, seeding), the bottleneck is almost…
When working with Laravel Sail, you might encounter an issue where npm install starts but never completes. The command appears to hang after downloading packages, with the spinner eventually stopping.
Run this command instead of the standard npm install:
sail npm install --prefer-offline --no-fund --no-audit
This combination of flags helps avoid common container-related issues:
--prefer-offline: Uses cached packages when available, reducing network dependencies--no-fund: Skips funding messages that can cause delays--no-audit: Bypasses the security vulnerability check that often hangs in containerized environmentsIf you're still experiencing issues:
--verbose to see detailed progressdocker statssail npm cache clean --forcesail bash -c "rm -rf node_modules"Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com