Whether composer install is throwing strange errors inside the virtual box vagrant environment, simply append COMPOSER_RUNTIME_ENV=virtualbox
$ COMPOSER_RUNTIME_ENV=virtualbox composer install
Note: This parameter is available only in version 2 of composer.
For those still running composer 1, use mount --bind approach. The idea is to mount the vendor directory outside the vagrant virtual box shared folders.
$ mkdir /tmp/vendor
$ sudo mount --bind /tmp/vendor /SYMFONY_APP_ROOT/vendor
- Log in to post comments