Skip to content
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

[4.x] Fix Starter Kit installation on Windows #9968

Merged
merged 3 commits into from
Apr 29, 2024
Merged

[4.x] Fix Starter Kit installation on Windows #9968

merged 3 commits into from
Apr 29, 2024

Conversation

JohnathonKoster
Copy link
Contributor

This PR fixes #9967

If we run a command that doesn't actually install the Stater Kit, we will end up with the Starter kit config [starter-kit.yaml] does not exist. error when installing using php please starter-kit:install directly, and is one of the ways to trigger the There was a problem installing... error when using the Statamic CLI.

The where composer command can return multiple results, which this PR handles. Additionally, since we are eventually passing this all to PHP, we need to look for the composer.phar file, as the results will often point to either a composer.bat file, or a composer file which often internally invokes PHP with the composer.phar file.

@jasonvarga jasonvarga merged commit 897803d into statamic:4.x Apr 29, 2024
19 checks passed
@jasonvarga jasonvarga deleted the fix-starter-kits-on-windows branch April 29, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't install starter kit on Windows 11
2 participants