<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Issue when deploying simple app to BTP using 'cf push' in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017908#M4903591</link>
    <description>Thanks Rotem, the app I need to deploy needs to be used in S/4HANA Cloud Public, then I should deploy to CF, right?</description>
    <pubDate>Sun, 16 Feb 2025 16:12:53 GMT</pubDate>
    <dc:creator>Melvin11</dc:creator>
    <dc:date>2025-02-16T16:12:53Z</dc:date>
    <item>
      <title>Issue when deploying simple app to BTP using 'cf push'</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaq-p/14015827</link>
      <description>&lt;P class=""&gt;Hey everyone,&lt;/P&gt;&lt;P class=""&gt;I’m new to BTP apps, and honestly, I’m about to lose it—so I really hope someone can help!&lt;/P&gt;&lt;P class=""&gt;I’m using &lt;SPAN class=""&gt;&lt;STRONG&gt;BAS (Business Application Studio)&lt;/STRONG&gt;&lt;/SPAN&gt; in case that’s relevant. My goal is simple: deploy a &lt;SPAN class=""&gt;&lt;STRONG&gt;basic Fiori app&lt;/STRONG&gt;&lt;/SPAN&gt; with a blank page that displays a list of data from a web service. Everything works fine when running it in BAS for testing.&lt;/P&gt;&lt;P class=""&gt;I’ve explored &lt;SPAN class=""&gt;&lt;STRONG&gt;BTP in the past&lt;/STRONG&gt;&lt;/SPAN&gt;, but due to the complexity around &lt;SPAN class=""&gt;&lt;STRONG&gt;deployments, manifests, YAML files, routes, and MTA&lt;/STRONG&gt;&lt;/SPAN&gt;, I put it on hold until things hopefully became more stable. Now, I’m trying again and facing deployment issues.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I attempted to deploy the app using &lt;SPAN class=""&gt;cf push&lt;/SPAN&gt;. I also tried using &lt;SPAN class=""&gt;&lt;STRONG&gt;MTA&lt;/STRONG&gt;&lt;/SPAN&gt;, but for some reason, the &lt;SPAN class=""&gt;&lt;STRONG&gt;HTML5 app is not being deployed&lt;/STRONG&gt;&lt;/SPAN&gt;. The ultimate goal is to add this app to &lt;SPAN class=""&gt;&lt;STRONG&gt;S/4HANA Cloud Public via Launchpad&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P class=""&gt;When checking the logs with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;cf logs &amp;lt;prj_name&amp;gt; --recent&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I see the following &lt;SPAN class=""&gt;&lt;STRONG&gt;errors (in red)&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;   2025-02-13T06:10:09.11+0000 [APP/PROC/WEB/0] ERR sh: 1: tsc: not found
   2025-02-13T06:10:09.12+0000 [APP/PROC/WEB/0] ERR npm notice
   2025-02-13T06:10:09.12+0000 [APP/PROC/WEB/0] ERR npm notice New major version of npm available! 10.7.0 -&amp;gt; 11.1.0
   2025-02-13T06:10:09.12+0000 [APP/PROC/WEB/0] ERR npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
   2025-02-13T06:10:09.12+0000 [APP/PROC/WEB/0] ERR npm notice To update run: npm install -g npm@11.1.0
   2025-02-13T06:10:09.12+0000 [APP/PROC/WEB/0] ERR npm notice&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;It seems there are &lt;SPAN class=""&gt;&lt;STRONG&gt;two major issues&lt;/STRONG&gt;&lt;/SPAN&gt; here:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;1. &lt;/SPAN&gt;&lt;STRONG&gt;TSC (TypeScript Compiler) not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;2. &lt;/SPAN&gt;&lt;STRONG&gt;NPM version inconsistency&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;What I’ve Tried (Without Success)&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":keycap_1:"&gt;1️⃣&lt;/span&gt;Fixing the tsc: not found Issue&lt;/STRONG&gt;&lt;/H3&gt;&lt;P class=""&gt;Modified &lt;SPAN class=""&gt;package.json&lt;/SPAN&gt; to move TypeScript from &lt;SPAN class=""&gt;devDependencies&lt;/SPAN&gt; to &lt;SPAN class=""&gt;dependencies&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;Modify package.json
"dependencies": {
  "typescript": "^5.2.2"  // Añádelo aquí
},
"devDependencies": {
  
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Installed TypeScript globally:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;npm install typescript&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Added a post-install script in &lt;SPAN class=""&gt;package.json&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;"scripts": {
"postinstall": "npm install -g typescript"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Verified TypeScript installation:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;npx tsc --version #returns 5.7.3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Despite all of this, &lt;/SPAN&gt;&lt;SPAN class=""&gt;cf push&lt;/SPAN&gt; &lt;STRONG&gt;still throws the tsc: not found error&lt;/STRONG&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":keycap_2:"&gt;2️⃣&lt;/span&gt;Fixing the NPM Version Issue&lt;/STRONG&gt;&lt;/H3&gt;&lt;P class=""&gt;Updated NPM with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;npm install -g npm@11.1.0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;However, running &lt;/SPAN&gt;&lt;SPAN class=""&gt;npm -v&lt;/SPAN&gt; &lt;STRONG&gt;still shows the old version&lt;/STRONG&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;To fix this, I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;export PATH=$(npm prefix -g)/bin:$PATH&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;After this, &lt;/SPAN&gt;&lt;SPAN class=""&gt;npm -v&lt;/SPAN&gt; &lt;STRONG&gt;shows the correct version (11.1.0)&lt;/STRONG&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;But the errors still persist exactly the same&lt;/STRONG&gt;&lt;SPAN class=""&gt; after redeployment.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":keycap_3:"&gt;3️⃣&lt;/span&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Other Things I’ve Tried (Also Failed)&lt;/STRONG&gt;&lt;/H3&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Specified the Node.js version in &lt;SPAN class=""&gt;package.json&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;"engines": {
    "node": "20.x"
  }​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Created a &lt;SPAN class=""&gt;manifest.yml&lt;/SPAN&gt; to reduce memory size (not directly related but worth trying).&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Deleted the failed app to free up space in BTP.&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Completely removed and reinstalled &lt;SPAN class=""&gt;node_modules&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;rm -rf node_modules package-lock.json
npm cache clean --force
npm install&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Yet, nothing has worked.&lt;/P&gt;&lt;P class=""&gt;I’ve already gone through these articles, but they didn’t solve my issue:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;• &lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; &lt;A href="https://community.sap.com/t5/technology-blogs-by-members/tips-for-running-cap-nodejs-in-sap-btp/ba-p/13564535" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Tips for Running CAP Node.js in SAP BTP&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;• &lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; &lt;A href="https://community.sap.com/t5/technology-q-a/error-while-deploying-my-cap-project-to-cf-trial-account/qaq-p/12787607" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Error While Deploying CAP Project to CF Trial&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;My Questions&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;1. &lt;/SPAN&gt;&lt;STRONG&gt;How can I ensure Cloud Foundry uses the correct Node.js and NPM versions during deployment?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;2. &lt;/SPAN&gt;&lt;STRONG&gt;Why does cf push fail with tsc: not found even though TypeScript is installed globally?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;3. &lt;/SPAN&gt;&lt;STRONG&gt;What’s the proper way to deploy a simple Fiori app (HTML5) to BTP and register it in S/4HANA Cloud Public via Launchpad?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I’d really appreciate any guidance—thanks in advance! &lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 07:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaq-p/14015827</guid>
      <dc:creator>Melvin11</dc:creator>
      <dc:date>2025-02-13T07:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when deploying simple app to BTP using 'cf push'</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14016831#M4903395</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, there is a tutorial about exactly your goal:&lt;/P&gt;&lt;P&gt;You can refer to: &lt;A href="https://developers.sap.com/tutorials/abap-environment-deploy-cf..html" target="_self"&gt;Fiori&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kristiyan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 06:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14016831#M4903395</guid>
      <dc:creator>kristiyan</dc:creator>
      <dc:date>2025-02-14T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when deploying simple app to BTP using 'cf push'</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017862#M4903583</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Using 'CF push' is not the recommended approach for deploying SAP Fiori applications to SAP BTP, Cloud Foundry environment.&lt;BR /&gt;Please refer for the following documentation on how to generate CF deployment configuration for your application in SAP Business Application Studio, and later use it to deploy your application:&lt;BR /&gt;&lt;A href="https://help.sap.com/docs/bas/developing-sap-fiori-app-in-sap-business-application-studio/generate-deployment-configuration-cloud-foundry" target="_blank"&gt;https://help.sap.com/docs/bas/developing-sap-fiori-app-in-sap-business-application-studio/generate-deployment-configuration-cloud-foundry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/docs/bas/developing-sap-fiori-app-in-sap-business-application-studio/deployment-of-application#deployment-to-cloud-foundry" target="_blank"&gt;https://help.sap.com/docs/bas/developing-sap-fiori-app-in-sap-business-application-studio/deployment-of-application#deployment-to-cloud-foundry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use SAP Business Application Studio &lt;A href="https://help.sap.com/docs/SAP%20Business%20Application%20Studio/9d1db9835307451daa8c930fbd9ab264/task-explorer" target="_self"&gt;task explorer&lt;/A&gt; to easily create and run the relevant tasks to create this configuration and use it for the deployment.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rotem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 13:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017862#M4903583</guid>
      <dc:creator>rotem_puterman-sobe</dc:creator>
      <dc:date>2025-02-16T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when deploying simple app to BTP using 'cf push'</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017864#M4903585</link>
      <description>Editing here - that if your target goal is to deploy to SAP S/4HANA Cloud, you should create deployment configuration to ABAP system and not to deploy to CF at all which is completely different runtime environment. See: &lt;A href="https://help.sap.com/docs/bas/developing-sap-fiori-app-in-sap-business-application-studio/generate-deployment-configuration-abap" target="_blank"&gt;https://help.sap.com/docs/bas/developing-sap-fiori-app-in-sap-business-application-studio/generate-deployment-configuration-abap&lt;/A&gt;</description>
      <pubDate>Sun, 16 Feb 2025 13:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017864#M4903585</guid>
      <dc:creator>rotem_puterman-sobe</dc:creator>
      <dc:date>2025-02-16T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when deploying simple app to BTP using 'cf push'</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017908#M4903591</link>
      <description>Thanks Rotem, the app I need to deploy needs to be used in S/4HANA Cloud Public, then I should deploy to CF, right?</description>
      <pubDate>Sun, 16 Feb 2025 16:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14017908#M4903591</guid>
      <dc:creator>Melvin11</dc:creator>
      <dc:date>2025-02-16T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when deploying simple app to BTP using 'cf push'</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14199761#M4924561</link>
      <description>Were you able to solve your issue? We are also trying to register on Cloud Public Edition, we can expose the app deployed to CF by using the link with custom tile, but by doing so we are not able to restrict the access to specific users</description>
      <pubDate>Fri, 29 Aug 2025 15:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-when-deploying-simple-app-to-btp-using-cf-push/qaa-p/14199761#M4924561</guid>
      <dc:creator>andrea_antonio_perrelli65</dc:creator>
      <dc:date>2025-08-29T15:50:57Z</dc:date>
    </item>
  </channel>
</rss>

