Root composer.json requires PHP extension ext-intl but it is missing from your system

All files generated. (152.782 seconds) (v2022.5)
Checking PHP CLI…
Running composer update -n…
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1

  • Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP’s intl extension.
    To enable extensions, verify that they are enabled in your .ini files:
  • C:\xampp\php\php.ini
    You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
    node:child_process:826
    err = new Error(msg);

As the error message said Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP’s intl extension.Make sure you have already installed/enabled PHP Intl extension in your web server, then restart your web server. (See Composer.)

If u use window os and php 7.xx above after enable ext intl but problem still occur, make sure to install microsoft c++ 2017 redistributable also, set system variable path in windows to your php instalation directory. That fixed for me.