Command failed: composer update

Hi

I am a regsiterd user and want to uopdate PHPmaker
After downloading a aniew version 2021, inslataltion and generation the code , teh following error accoured through the generation process ia ared color.


Error: Command failed: composer update -n --no-suggest
at checkExecSyncError (child_process.js:630:11)
at execSync (child_process.js:666:15)
at global.Exec (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:354114)
at global.RunComposerUpdate (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:353941)
at C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:358660


I have checed the internet connection , no problem.
Could zou help please<

Thanks
Mohd

Error: Command failed: composer update -n --no-suggest
at checkExecSyncError (child_process.js:630:11)
at execSync (child_process.js:666:15)
at global.Exec (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:354114)
at global.RunComposerUpdate (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:353941)
at C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:358660

Make sure you have already installed PHPMaker v2021 by choosing “Run as Administrator”.

Are you sure you have installed and set up Composer properly? Read: https://phpmaker.dev/doc/sysreq.htm#composer. (Normally running PHPMaker as administrator should not be required, but you can try.)

I have been running version 2020 without fail on the same machine. Should I have to redo all this for version 2021?

  1. The requirements for Composer has not been changed from v2020 to v2021. However, since v2021 requires PHP >= 7.2, you might have updated PHP, and Composer uses PHP. Your Composer might be still trying to find the old PHP according to the old path from the PATH environment variable. You can try reinstall Composer. The Composer-Setup.exe is shipped with PHPMaker and you can find it under C:\Program Files (x86)\PHPMaker 2021. Also check the PATH environment variable and make sure the path to the PHP installed folder is correct.
  2. It may not be related, but you can try install the latest Node.js LTS, see system requirements: https://phpmaker.dev/download.php.
  3. Normally running PHPMaker as administrator should not be required, but you can try.