React front-end : Error when trying to Synchronize Project Model

According to documentation, I am trying to synchronize my React project models with those in the Cuba-platform back-end.

I went into my modules\front folder and ran the following command:

> npm run update-model

It translated to the following command:
> gen-cuba-front sdk:all --dest src/cuba

then gave me a connect ECONNREFUSED 127.0.0.1:48561 error as seen in the following screenshot:

Is this a bug ? Please help.
Thanks in advance

Hi, please make sure the corresponding project is opened in CUBA Studio and integration is enabled.
Alternatively you can export project model manually and pass it generator using --model option as described here

Thank you Vlad !
Problem solved !