Ui5 is not recognized as an internal or external command, operable program or batch file

We can use the following command line to installSAP UI5 Tools:

npm install –global @ui5/cli

Enter an empty folder and execute the command lineui5 initreport errors:

Initialization not possible: Missing package.json file

Ui5 is not recognized as an internal or external command, operable program or batch file

Then use the command linenpm initGenerate apackage.json:

Ui5 is not recognized as an internal or external command, operable program or batch file

Ui5 is not recognized as an internal or external command, operable program or batch file

Then execute againui5 init:

A new error message appears:

Could not detect project type: Could not find ‘webapp’ or ‘src’ / ‘test’ folders.
Applications should only have a ‘webapp’ folder.

Ui5 is not recognized as an internal or external command, operable program or batch file

Then I will create one manuallywebappfolder.

After that, init executes successfully and automatically creates aui5.yamlFile:

Ui5 is not recognized as an internal or external command, operable program or batch file

The contents are as follows:

Ui5 is not recognized as an internal or external command, operable program or batch file

According to my articleUse generator-easy-ui5 to quickly create the engineering structure of SAP ui5 applicationsIntroduce the tools to create a basic file hierarchy required for SAP ui5 applications.

After generation, view itspackage.jsonScript defined in script area in:

"scripts": { "start": "fiori run --open 'index.html'", "start-local": "fiori run --config ./ui5-local.yaml --open 'index.html'", "start-noflp": "fiori run --open 'index.html'", "build": "ui5 build -a --clean-dest --include-task=generateManifestBundle generateCachebusterInfo", "deploy": "fiori verify", "deploy-config": "fiori add deploy-config", "unit-tests": "fiori run --open test/unit/unitTests.qunit.html", "int-tests": "fiori run --open test/integration/opaTests.qunit.html" },

In the scriptfioriCommand, which is mentioned in the title of this articleSAP UI5 ToolsCommand prompt line tools forCLI。

implementnpm run start, the actual command isfiori run --open 'index.html':

Ui5 is not recognized as an internal or external command, operable program or batch file

Effect of the last run time:

Ui5 is not recognized as an internal or external command, operable program or batch file

We run directlyfiori deploy, an error will be reported:

‘fiori’ is not recognized as an internal or external command,
operable program or batch file.

It needs to be run in the wrapper NPM:

npm run deploy:

Ui5 is not recognized as an internal or external command, operable program or batch file

Error message:

No deployment configuration has been detected. Run npm run deploy-config to add configuration first.

It means no detectiondeployment configuration, you need to run another command first:npm run deploy-config。

First select the ABAP environment:

Ui5 is not recognized as an internal or external command, operable program or batch file

This command linenpm run deploy-configThe bottom layer is still runningyo:

Ui5 is not recognized as an internal or external command, operable program or batch file

Target System URL, maintain any one first, and you can modify it later:

Ui5 is not recognized as an internal or external command, operable program or batch file

Enter the BSP application name generated after deployment to the ABAP system and the stored ABAP package name, and it can be successfully generateddeployment configuration:

Ui5 is not recognized as an internal or external command, operable program or batch file

Ui5 is not recognized as an internal or external command, operable program or batch file

More of Jerry’s original articles are: “Wang Zixi”:

Ui5 is not recognized as an internal or external command, operable program or batch file

How to install ui5?

How to install a basic development environment for SAPUI5.
Step 1: Install Java Development Kit (JDK).
Step 2: Set Up Environment Variables..
Step 3: Install Eclipse..
Step 4: Install a Java Web Server..
Step 5: Add Web Server to Eclipse..
Step 6: Install SAPUI5 Plugin..
Step 7: Run your Project..
Some useful hints..

What is ui5 Yaml file?

A projects UI5 Tooling configuration is typically located in a YAML file named ui5. yaml , located in the root directory. Info. This document describes the configuration of UI5 Tooling-based projects and extensions.

How do I start SAPUI5?

Go to File->New->Other->SAPUI5 Application Development->Application project. Then follow wizard instructions to create new SAPUI5 application project.

What are the prerequisites for developing with ui5 tooling?

If your project does not have a package.json file, let npm generate it: npm init --yes..
Generate the ui5.yaml file: ui5 init..
Define the framework you want to use. OpenUI5 SAPUI5. ... .
Add required libraries. ... .
Start the server and work on your project! ... .
If you are using Git or similar version control, commit package..