This seems to be broken when using Composer 2.3, but the underlying issue is the Symfony Process 5.4 library that expects an array, while this package is using the 2.x version.
https://github.com/symfony/process/blob/5.4/Process.php#L143
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 /project/vendor/mariusbuescher/node-composer/src/Installer/NodeInstaller.php on line 84
Exception trace:
at phar:///opt/homebrew/Cellar/composer/2.3.2/bin/composer/vendor/symfony/process/Process.php:143