-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when "composer install" (initial project statamic/statamic) #5
Comments
Try a |
I tried this, didn't work. I also tried |
Is the path that you've blurred out definitely correct? Does that directory that it couldn't exist actually exist? What version of PHP are you using? |
Yeah, does exists. PHP 7.4 in use. |
I'm out of ideas. I wonder if it's something specific to Homestead. I'll try spinning one up when I have a chance. Do you have the ability to try installing this outside of Homestead? |
When did you create your homestead box? Can you upgrade? This sounds the same as the thread here, specifically this comment telling you that upgrading your box should fix it. There's also the suggestion that running |
@jasonvarga actually I did try to update homestead yesterday, from 9.6 to 10.x but for some weird reason I couldn't. I did even a full reinstall of homestead but vagrant kept on insisting to use 9.6 .... weird. I will try to update homestead to latest tomorrow and will post back here the results. Thank you for the support. |
@jasonvarga turns out I was using the latest homestead, however latest in the 9.x settler branch which is based on ubuntu 18.04. I did try today a clean install of the latest homestead in the 10.x settler version based on ubuntu 20.04. Same error: I'm open for suggestions to try out. |
Happy to report that I've come around this issue. @jasonvarga thank you for pointing me in the direction of laravel/homestead#1240 It turns out the issue has nothing to do with pixelfear's composer-dist-plugin, nor with composer, even less with homestead or settler for that matter. It is a problem with vboxsf of VirtualBox which - it turns out - is slow for composer. I successfully tried both workarounds: Even though I'm not the original author of the issue I think it is fair to say that it can be closed as it has nothing to do with composer-dist-plugin. |
@nimiboid But why does this issue appear for different user and the same issue appears? Random or some specific code logic that triggers that issue? |
@felixstoessel |
Hmm. I am on a macOS host (Mojave 10.15.7). I just wonder why this only happen with my Statamic projects and not with non-Statamic. Everything on Laravel Homestead and VirtualBox, but different outcomes depending on the PHP project. So I assume it has to do with this plugin. |
@felixstoessel my bad, I was under the impression you're running windows host as well. Those are valid questions. Are your running vagrant with the virtualbox provider? If yes, maybe you could try out the parallels provider. |
If you're saying its because it's too slow - it could be that Statamic projects will use this Composer plugin, and Composer plugins are installed before everything else. Maybe it happens early enough for the slowness to be a problem, and you just don't see it in non-Statamic projects because they don't use Composer plugins. Really just completely guessing here though. |
All my non-statamic projects use Composer plugins. It is just interesting, because the bug appears always with this particular Composer plugin. |
What other Composer plugins are you using in your other projects? |
I hit this same issue using a custom Vagrant box, not Homestead. Installing statamic via composer using --prefer-source worked for me. |
Hello,
I am using a Statamic project (from the statamic/statamic repo). When deleting the
vendor/
andcomposer.lock
and trying to do acomposer install
, I get following error:I am using Composer version 1.10.19 and also tested with Composer 2. I am on Homestead and macOS.
The text was updated successfully, but these errors were encountered: