How to resolve Flexmonster not recognized in terminal

Answered
Kiran Mistry asked 2 days ago

I am currently trying out flexmonster and have been going through the integration process with react next.js. However, I can't run the flexmonster add react-flexmonster. It returns:

 

flexmonster : The term 'flexmonster' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the    

path is correct and try again.

At line:1 char:1

+ flexmonster add react-flexmonster

+ ~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (flexmonster:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 

Can you please advise on this?

 

Thanks,

Kiran

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster 1 day ago

Hello, Kiran!

Thank you for reaching out to us.

This issue most likely occurred due to the incorrect installation of Flexmonster CLI. To verify installation, you can run this command:

flexmonster version

If Flexmonster CLI is successfully installed, you should see the version prompted in the terminal. Otherwise, try reinstalling it with the following command:

npm install -g flexmonster-cli

Also, you can directly clone a React NextJS sample project from our GitHub without using the CLI.

Looking forward to hearing from you.

Best Regards,
Maksym

Public
Kiran Mistry 24 hours ago

Hi Maksym, 

 

I have tried downloading it multiple times and deleting it, but it doesn't recognise flexmonster in the terminal. I am working on a large project so can't clone the existing project. Do you have any other suggestions? Here is what my terminal looks like when I download.

Thanks for your support,

Kiran

Public
Maksym Diachenko Maksym Diachenko Flexmonster 3 hours ago

Hello, Kiran!

Thank you for your quick response.

Indeed, installing a sample project does not fit a scenario in which Flexmonster should be integrated into the existing project. If the CLI installation fails, you could try directly installing react-flexmonster from NPM:

npm install react-flexmonster

Please let us know if this approach works for you.

Best Regards,
Maksym

Please login or Register to Submit Answer