The zip extension and unzip/7z commands are both missing

I did a fresh install from a newly registered (paid) version. I have updated Composer and NodeJS.I opened a mySQL db didn’t make any modifications and went directly to a “Generate” this is the error message I got, and I get it regardless of whether or not I check the “Update Composer” checkbox.Package operations: 91 installs, 0 updates, 0 removals
Failed to download paragonie/random_compat from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\php\php.ini
Now trying to download from source
In GitDownloader.php line 82:
git was not found in your PATH, skipping source download
update [–with WITH] [–prefer-source] [–prefer-dist] [–prefer-install PREFER-INSTALL] [–dry-run] [–dev] [–no-dev] [–lock] [–no-install] [–no-audit] [–audit-format AUDIT-FORMAT] [–no-autoloader] [–no-suggest] [–no-progress] [-w|–with-dependencies] [-W|–with-all-dependencies] [-v|vv|vvv|–verbose] [-o|–optimize-autoloader] [-a|–classmap-authoritative] [–apcu-autoloader] [–apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [–ignore-platform-req IGNORE-PLATFORM-REQ] [–ignore-platform-reqs] [–prefer-stable] [–prefer-lowest] [-i|–interactive] [–root-reqs] [–] […]
node:internal/errors:932
const err = new Error(message);
^
Error: Command failed: composer update -n --ansi
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at global.Exec (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules@phpmaker\core\phpmaker.js:8:315056)
at global.RunComposerUpdate (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules@phpmaker\core\phpmaker.js:8:323942)
at C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules@phpmaker\core\phpmaker.js:8:333934
at {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 65016,
stdout: null,
stderr: null
}
Node.js v21.1.0
Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).what am I missing?TIA - Greg

From one line of your errror, did you enable the zip extension in your PHP?

It wasn’t, but I enabled it, restarted IIS and basically got the same error, see below.Running composer run-script routes --ansi…

PHPMaker2024\project1\RouteAttributes::dispatch
In RouteAttributes.php line 89:

[Error]
Class “PhpParser\ParserFactory” not found
Exception trace:
at D:\html’s\project1\cms\src\RouteAttributes.php:89
PHPMaker2024\project1\RouteAttributes::get() at D:\html’s\project1\cms\src\RouteAttributes.php:187
PHPMaker2024\project1\RouteAttributes::dispatch() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:450
Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:257
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:129
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/RunScriptCommand.php:139
Composer\Command\RunScriptCommand->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:382
Composer\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:145
Composer\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:93
require() at C:\ProgramData\ComposerSetup\bin\composer.phar:29
run-script [–timeout TIMEOUT] [–dev] [–no-dev] [-l|–list] [–] [ […]]
node:internal/errors:932
const err = new Error(message);
^
Error: Command failed: composer run-script routes --ansi
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at global.Exec (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules@phpmaker\core\phpmaker.js:8:315056)
at global.RunComposerScript (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules@phpmaker\core\phpmaker.js:8:324344)
at C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules@phpmaker\core\phpmaker.js:8:334116
at {
status: 1,
signal: null,FWIW I am running PHP 8.2.11

You may try install the PHP zip extension and Git for Windows. Then delete the “vendor” folder and run composer update again. Make sure there is no errors during composer update.

The zip extension was already installed. I deleted the vendor folder (which was empty) and it seemed to fix it. Not sure why though

You probably had an unsuccessful composer update before so you had a corrupted “vendor” folder.