cancel
Showing results for 
Search instead for 
Did you mean: 

Error when running command: fiori add deploy-config cf

alex_georgek
Associate
Associate
0 Kudos
1,208

Hello ,

I am trying to complete step 9 of the exercise CAP (https://developers.sap.com/tutorials/btp-app-work-zone-setup.html)

ie Exercise :Add deployment configuration for the SAP Fiori elements Risks application

I am getting the below error when i use the bash command fiori add deploy-config cf

Error

--------

Adding deploy-config to the project. info Add:Deploy-config Using: /Users/generators/node_modules/@sap/generator-fiori/generators/deploy-config/index.js Error /Users/generators/node_modules/@sap/generator-fiori/generators/deploy-config/index.js cf --base ui5.yaml --config ui5-deploy.yaml You don't seem to have a generator with the name “/Users/generators/node_modules/@sap/generator-fiori/generators/deploy-config/index.js” installed. But help is on the way: You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/. Install them with npm install generator-/Users/generators/node_modules/@sap/generator-fiori/generators/deploy-config/index.js. To see all your installed generators run yo --generators. Adding the --help option will also show subgenerators. If yo cannot find the generator, run yo doctor to troubleshoot your system. Do you need to install @sap/generator-fiori globally? npm install -g @sap/generator-fiori OR yarn global add @sap/generator-fiori

Any idea on what i am doing wrong.I was able to get all the steps correct upto this exercise.

Now i am stuck and not sure what is the issue here.

Regards,

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

manjunath_ks1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alex,

This was sometimes triggered by a badly formatted YAML file so I would use an external validator to check that but that may not be the issue here. Another thing to try is to update them. Here are the steps:

In the fiori application generator click on Explore and install Generators, It'll list all your installed generators and versions. Filter for SAP Fiori by selecting it in the dropdown, then it automatically starts updates in case there are any available.

Best regards,
Manju