statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.58k stars 490 forks source link

Starter Kit install broken #9952

Closed lpeterke closed 2 months ago

lpeterke commented 2 months ago

Bug description

Your latest release 4.57.1 broke php please starterkit:install

Error: Could not open input file: vendor/bin/composer

How to reproduce

  1. statamic new testproject
  2. php please starterkit:install studio1902/statamic-peak

Logs

No response

Environment

Latest

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

None

Additional details

No response

lpeterke commented 2 months ago

Issue can be fixed by locking statamic/cms to 4.57.0 after installation in composer.json, then reinstall composer dependencies.

joshuablum commented 2 months ago

Thanks, there is already an open PR to fix this, see https://github.com/statamic/cms/pull/9950. Will be fixed in the next release.

the-goodies commented 2 months ago

Still broken on Windows 11, with 4.57.2 version:

In NewCommand.php line 555:

  There was a problem installing Statamic with the chosen starter kit!

new [--dev] [--license [LICENSE]] [--local] [--with-config] [--without-dependencies] [-f|--force] [--] <name> [<starter-kit>]

Also when trying to create starter-kit on an existing site, I get the following error:

php please starter-kit:install duncanmcclean/sc-starter-kit

 Clear site first? (yes/no) [no]:
 > no

Preparing starter kit [duncanmcclean/sc-starter-kit]...
Starter kit config [starter-kit.yaml] does not exist.

Or

php please starter-kit:install duncanmcclean/sc-starter-kit

 Clear site first? (yes/no) [no]:
 > yes

Collections cleared successfully.
Navigations cleared successfully.
Trees cleared successfully.
Taxonomies cleared successfully.
Assets cleared successfully.
Globals cleared successfully.
Forms cleared successfully.
Users cleared successfully.
User groups cleared successfully.
User roles cleared successfully.
Blueprints cleared successfully.
Fieldsets cleared successfully.
Views cleared successfully.
Statamic configs reset successfully.
Preparing starter kit [duncanmcclean/sc-starter-kit]...
Starter kit config [starter-kit.yaml] does not exist.
duncanmcclean commented 2 months ago

@the-goodies This seems like a different issue - please open a new issue.