Composer error after adding composer package

This is a clean install on a brand new computer, and I’m now running into the following probem.
My environment: Windows 10 Pro, Apache 2.4, PHP 7.4, Composer 1.9.2, NodeJS and PHP Maker 2020.0.10I have checked: php -v and return:
PHP 7.4.2 (cli) (built: Jan 21 2020 17:52:43) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend TechnologiesI have checked: composer -V and return:
Composer version 1.9.2 2020-01-14 16:30:31After all files are generated, I get the following error message:
Checking PHP CLI…
Running composer update -n --no-suggest…
[UnexpectedValueException]
Could not parse version constraint : Invalid version string “”
(node:6568) UnhandledPromiseRejectionWarning: Error: Command failed: composer update -n --no-suggest
at checkExecSyncError (child_process.js:611:11)
at execSync (child_process.js:647:15)
at global.Exec (C:\Program Files (x86)\PHPMaker 2020\node\node_modules\phpmaker\phpmaker.js:7:364830)
at global.RunComposerUpdate (C:\Program Files (x86)\PHPMaker 2020\node\node_modules\phpmaker\phpmaker.js:7:364655)
at C:\Program Files (x86)\PHPMaker 2020\node\node_modules\phpmaker\phpmaker.js:7:369056
(node:6568) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see h t t p s : / / nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6568) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.I have copied/restored my project files as it was last saved from my “old machine” (before it failed completely). It is my latest project files (thank goodness for backups)! It generated flawlessly on my old machine, but now I’m getting this error.
I have read the following (but still cannot figure out the issue):

  • hkvforums. com / viewtopic.php ? f = 4&t=42920
  • phpmaker. dev / doc / migrate2020 . htm
  • phpmaker. dev / doc / migrate2019 .htm
  • Composer is talking aboout a JSON file, but what must go into that JSON file?

Any ideas what I’m missing, please? NOTE that this is a clean install (as pointed out above).

You may check the content of composer.json, make sure all packages have version number.

Thank you for your response.So I thought it is a good idea (and about time) to give feedback if anybody else struggle with the same scenario. It was simple, very simple really. It was a composer package that was causing the issue, so I removed the package and recreated it and all is solved.Menu > Tools > Composer packages

I have same issue, but my composer package list is empty
No idea how to solve this

I got it fixed in the end.
Install of latest composer wouldn’t work with PHP version 7 which shipped with Vertrigoserv.
Installed PHP separately to C:\PHP and pointed Composer to that instead.