Install fails with error In VersionParser.php line 186: Invalid version string ""

I tried to install UserFrosting by following the Quick Start guide here https://learn.userfrosting.com/ on my Ubuntu 20.04 server, however the installation process fails at the third command php bakery bake

I made sure to install latest Composer version with these commands, as the one unstalled by the package manager was still the old Composer 1.x and the installation script was complaining about deprecated stuff.

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"


Steps to reproduce:
1. Clone git repo `git clone https://github.com/userfrosting/UserFrosting.git`
2. Go to UserFrosting directory and run `composer install`
3. Run `php bakery bake`
4. Enter database details
5. Enter email server details
6. The below error is displayed and the installation is interrupted.

UserFrosting

sh: 1: node: not found

In VersionParser.php line 186:

Invalid version string “”

bake

Make sure NodeJS is installed.

you can try reinstalling the NodeJS