cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error During create Fiori Generator project in visual studio code

srahemi
Participant
10,263

Hi every one
I use this tutorial
https://developers.sap.com/tutorials/fiori-tools-generate-project.html
to create Fiori App Project but i got this error

2020-11-30-15-02-36.pn

I would greatly appreciate it if help me

{"message":"@sap/fiori-elements generator failed - Command failed: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption\n'powershell' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n\n","stack":"Error: Command failed: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption\n'powershell' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n\n\n\tat v (C:\\Users\\Saphiran-01\\AppData\\Roaming\\npm\\node_modules\\@sap\\generator-fiori-elements\\generators\\app\\index.js:556:307535)\n\tat Function.e.exports.sync (C:\\Users\\Saphiran-01\\AppData\\Roaming\\npm\\node_modules\\@sap\\generator-fiori-elements\\generators\\app\\index.js:556:309386)\n\tat e.exports (C:\\Users\\Saphiran-01\\AppData\\Roaming\\npm\\node_modules\\@sap\\generator-fiori-elements\\generators\\app\\index.js:556:305702)\n\tat Object.e.exports [as default] (C:\\Users\\Saphiran-01\\AppData\\Roaming\\npm\\node_mod...

Accepted Solutions (1)

Accepted Solutions (1)

srahemi
Participant

thanks to all who contributed
i use this to solve my problem
https://github.com/nodejs/node-gyp#on-windows


Answers (2)

Answers (2)

vt1003
Discoverer
  • Try to install/reinstall Nodejs. Don't forget to check the box for installing the "chocolatey" (comes with Nodejs).
  • Install VS-Code Plugin for Fiori (SAp Fiori Extension Pack)
  • On the left menu, where the buttons for explorer, search, plugins etc. are found, the new icon for SAP Fiori must appear; Click on it
  • Now go to "View"-"Command Palette" and select Fiori: Open Application Generator

This worked for me

IanQuigley
Product and Topic Expert
Product and Topic Expert

Hello Sina,

Thanks for reaching out. We are unable to recreate your issue locally :(. However, it looks like its an issue with powershell, and you may be able to change your path to fix it. Please see https://stackoverflow.com/questions/29778121/powershell-is-not-recognized-as-an-internal-or-external... as an example of the error. The suggested solution is to update your windows PATH variable. Can you please try?

Regards,

Ian

srahemi
Participant
0 Likes

hello quiggs1000

I tried this solution and Unfortunately it did not work