I’m finding Sage 10 challenging with WSL etc, so I’ve reverted to Sage 9.
I’ve had Sage 9 working before.
Since the release of Sage 10, the advice is to run…
composer create-project roots/sage kwd-custom 9.x-dev
When I run this, I get…
D:\laragon\www\kwd-it-22\public\content\themes
λ composer create-project roots/sage kwd-custom 9.x-dev
Creating a "roots/sage" project at "./kwd-custom"
Info from https://repo.packagist.org: #StandWithUkraine
Installing roots/sage (9.x-dev 7e6d0671d3421acadb6e9b3d0bad2a9f54d62c67)
- Installing roots/sage (9.x-dev 7e6d067): Extracting archive
Created project in D:\laragon\www\kwd-it-22\public\content\themes\kwd-custom
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 34 installs, 0 updates, 0 removals
- Installing kylekatarnls/update-helper (1.2.1): Extracting archive
kylekatarnls/update-helper contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "kylekatarnls/update-helper" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
- Installing composer/installers (v1.10.0): Extracting archive
composer/installers contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "composer/installers" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
- Installing psr/log (1.1.3): Extracting archive
- Installing filp/whoops (2.12.1): Extracting archive
- Installing symfony/translation-contracts (v2.3.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.22.0): Extracting archive
- Installing symfony/translation (v4.4.19): Extracting archive
- Installing nesbot/carbon (1.25.3): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing psr/container (1.0.0): Extracting archive
- Installing illuminate/contracts (v5.6.39): Extracting archive
- Installing doctrine/inflector (1.4.3): Extracting archive
- Installing illuminate/support (v5.6.39): Extracting archive
- Installing illuminate/container (v5.6.39): Extracting archive
- Installing illuminate/events (v5.6.39): Extracting archive
- Installing paragonie/random_compat (v9.99.99): Extracting archive
- Installing symfony/process (v3.4.47): Extracting archive
- Installing symfony/polyfill-ctype (v1.22.0): Extracting archive
- Installing ramsey/uuid (3.9.3): Extracting archive
- Installing symfony/finder (v4.4.19): Extracting archive
- Installing illuminate/filesystem (v5.6.39): Extracting archive
- Installing symfony/service-contracts (v2.2.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.22.0): Extracting archive
- Installing symfony/polyfill-php73 (v1.22.0): Extracting archive
- Installing symfony/console (v4.4.19): Extracting archive
- Installing illuminate/console (v5.6.39): Extracting archive
- Installing roots/sage-installer (dev-webpack5 f4a07cb): Extracting archive
- Installing symfony/debug (v4.4.19): Extracting archive
- Installing illuminate/view (v5.6.39): Extracting archive
- Installing illuminate/config (v5.6.39): Extracting archive
- Installing roots/sage-lib (9.0.9): Extracting archive
- Installing brain/hierarchy (2.5.0): Extracting archive
- Installing soberwp/controller (2.1.2): Extracting archive
- Installing squizlabs/php_codesniffer (2.9.2): Extracting archive
Generating autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run ".\vendor\bin\upgrade-carbon" to get help in updating carbon and other frameworks and libraries that depend on it.
15 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Roots\Sage\Installer\ComposerScript::postCreateProject
TTY mode is not supported on Windows platform.
Some interactive parts of post-create-project routine might be skipped.
Running the sage cli tool manually should still work.
https://roots.io/sage/docs/
In Process.php line 143:
[TypeError]
Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in D:\laragon\www\kwd-it-22\public\content\themes\kwd-custom\vendor\roots\sage-installer\src\ComposerScript.php on
line 26
Exception trace:
at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/process/Process.php:143
Symfony\Component\Process\Process->__construct() at D:\laragon\www\kwd-it-22\public\content\themes\kwd-custom\vendor\roots\sage-installer\src\ComposerScript.php:26
Roots\Sage\Installer\ComposerScript::postCreateProject() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:391
Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:248
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:125
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Command/CreateProjectCommand.php:321
Composer\Command\CreateProjectCommand->installProject() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Command/CreateProjectCommand.php:167
Composer\Command\CreateProjectCommand->execute() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Application.php:1015
Symfony\Component\Console\Application->doRunCommand() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Application.php:299
Symfony\Component\Console\Application->doRun() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Console/Application.php:334
Composer\Console\Application->doRun() at phar://C:/laragon/bin/composer/composer.phar/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar://C:/laragon/bin/composer/composer.phar/src/Composer/Console/Application.php:130
Composer\Console\Application->run() at phar://C:/laragon/bin/composer/composer.phar/bin/composer:88
require() at C:\laragon\bin\composer\composer.phar:29
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]
I’ve installed the prerequisites, so I’m confused as to why I’m falling at the first hurdle.
Would anyone be able to give me some advice on the best way to resolve this issue?
It would be greatly appreciated.