on 04-03-2023 2:27 PM
I recently converted my application to MTA.
When I try to deploy it to CF I get the following error:
sh: 1: fiori: not found
I tried adding "npx" to the start script resulting in this error message:
npm ERR! 404 Not Found - GET https://registry.npmjs.org/fiori - Not found
npm ERR! 404 'fiori@latest' is not in this registry.
How can I start my application without it crashing?
Below are package.json and mta.yaml as they were generated, let me know if you need anything else:
package.json
{<br> "name": "cfwbpa",<br> "version": "0.0.1",<br> "private": true,<br> "description": "Company Application",<br> "keywords": [<br> "ui5",<br> "openui5",<br> "sapui5"<br> ],<br> "main": "webapp/index.html",<br> "dependencies": {<br> "fiori-tools": "^1.3.0"<br> },<br> "devDependencies": {<br> "@sap-ux/ui5-middleware-fe-mockserver": "2",<br> "@sap/ui5-builder-webide-extension": "^1.1.8",<br> "@sap/ux-ui5-tooling": "^1.9.3",<br> "@ui5/cli": "^2.14.1",<br> "mbt": "^1.2.18",<br> "rimraf": "^3.0.2",<br> "ui5-task-flatten-library": "0.2.5",<br> "ui5-task-zipper": "^0.5.0"<br> },<br> "scripts": {<br> "start": "fiori run --open \"test/flpSandbox.html?sap-client=001&sap-ui-xx-viewCache=false#atcompanycfwbpa-display\"", <br> "start-local": "fiori run --config ./ui5-local.yaml --open \"test/flpSandbox.html?sap-client=001&sap-ui-xx-viewCache=false#atcompanycfwbpa-display\"",<br> "build": "rimraf resources mta_archives && mbt build --mtar archive",<br> "deploy": "fiori cfDeploy",<br> "deploy-config": "fiori add deploy-config",<br> "start-noflp": "fiori run --open \"index.html?sap-client=001&sap-ui-xx-viewCache=false\"",<br> "start-mock": "fiori run --config ./ui5-mock.yaml --open \"test/flpSandbox.html?sap-client=001&sap-ui-xx-viewCache=false#atcompanycfwbpa-display\"",<br> "start-variants-management": "fiori run --open \"preview.html?&sap-client=001&sap-ui-xx-viewCache=false&fiori-tools-rta-mode=true&sap-ui-rta-skip-flex-validation=true#preview-app\"",<br> "unit-tests": "fiori run --config ./ui5-mock.yaml --open 'test/unit/unitTests.qunit.html'",<br> "int-tests": "fiori run --config ./ui5-mock.yaml --open 'test/integration/opaTests.qunit.html'",<br> "undeploy": "cf undeploy cfwbpa --delete-services --delete-service-keys --delete-service-brokers",<br> "deploy-test": "npm run build && fiori deploy --config ui5-deploy.yaml --testMode true",<br> "build:cf": "ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateCachebusterInfo",<br> "build:mta": "rimraf resources mta_archives && mbt build"<br> },<br> "ui5": {<br> "dependencies": [<br> "@sap/ux-ui5-tooling",<br> "@sap-ux/ui5-middleware-fe-mockserver",<br> "ui5-task-flatten-library",<br> "@sap/ui5-builder-webide-extension",<br> "ui5-task-zipper",<br> "mbt"<br> ]<br> },<br> "sapuxLayer": "CUSTOMER_BASE"<br>}<br><br><br>
mta.yaml
_schema-version: "3.1"<br>ID: appbpa<br>description: Company Application<br>version: 0.0.1<br>modules:<br>- name: appbpa-srv<br> type: nodejs<br> path: .<br> provides:<br> - name: srv-api<br> properties:<br> srv-url: ${default-url}<br> parameters:<br> buildpack: nodejs_buildpack<br> build-parameters:<br> builder: npm-ci<br>- name: appbpa-app-content<br> type: com.sap.application.content<br> path: .<br> requires:<br> - name: appbpa-repo-host<br> parameters:<br> content-target: true<br> build-parameters:<br> build-result: resources<br> requires:<br> - artifacts:<br> - atcompanyappbpa.zip<br> name: atcompanyappbpa<br> target-path: resources/<br>- name: atcompanyappbpa<br> type: html5<br> path: .<br> build-parameters:<br> build-result: dist<br> builder: custom<br> commands:<br> - npm install<br> - npm run build:cf<br> supported-platforms: []<br>resources:<br>- name: appbpa-repo-host<br> type: org.cloudfoundry.managed-service<br> parameters:<br> service: html5-apps-repo<br> service-name: appbpa-html5-srv<br> service-plan: app-host<br>- name: appbpa-destination-service<br> type: org.cloudfoundry.managed-service<br> parameters:<br> config:<br> HTML5Runtime_enabled: false<br> init_data:<br> instance:<br> destinations:<br> - Authentication: NoAuthentication<br> Name: ui5<br> ProxyType: Internet<br> Type: HTTP<br> URL: https://ui5.sap.com<br>; existing_destinations_policy: update<br> version: 1.0.0<br> service: destination<br> service-name: appbpa-destination-service<br> service-plan: lite<br>parameters:<br> deploy_mode: html5-repo<br> enable-parallel-deployments: true<br>build-parameters:<br> before-all:<br> - builder: custom<br> commands:<br> - npx -p @sap/cds-dk cds build --production<br><br>
Please follow this below link here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.