<?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: HANA WebIDE (DIBuild) npm ERR! code ETARGET in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaa-p/12523116#M4694069</link>
    <description>&lt;P&gt;Thanks Tom. I got it to work by doing a combination of these items:&lt;/P&gt;&lt;P&gt;-        
Changed the &lt;STRONG&gt;SAPUPSTREAM_LINK&lt;/STRONG&gt;
from &lt;A href="https://npm.sap.com" target="test_blank"&gt;https://npm.sap.com&lt;/A&gt; to &lt;STRONG&gt;&lt;A href="https://registry.npmjs.org" target="test_blank"&gt;https://registry.npmjs.org&lt;/A&gt;&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;-        
Done the restage and retest
commands&lt;/P&gt;

&lt;P&gt;-        
Changed &lt;STRONG&gt;@sap/hdi-deploy&lt;/STRONG&gt;
to version ^3&lt;/P&gt;&lt;P&gt;-     Added the &lt;B&gt;engine&lt;/B&gt; section at the end.&lt;/P&gt;&lt;P&gt;I probably need to update the Node version and the SAP packages. I need to figure how to do that on Linux.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name": "deploy",&lt;/P&gt;&lt;P&gt;"dependencies": {&lt;/P&gt;&lt;P&gt;"@sap/hdi-deploy": "^3"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"scripts": {&lt;/P&gt;&lt;P&gt;"start": "node
node_modules/@sap/hdi-deploy/deploy.js"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"engines": {&lt;/P&gt;&lt;P&gt;"node": "^10 || ^12"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;





















&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 09:31:56 GMT</pubDate>
    <dc:creator>ali_husain3</dc:creator>
    <dc:date>2022-04-25T09:31:56Z</dc:date>
    <item>
      <title>HANA WebIDE (DIBuild) npm ERR! code ETARGET</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaq-p/12523114</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt; 
  &lt;P&gt;I was wondering if anyone can help me with an issue I’m facing when Building an empty SAP HANA Database project in WebIDE.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt; 
  &lt;P&gt; I recently installed SAP HANA express on my machine as I’m interested in trying data modeling using the WebIDE. I followed the installation guide and managed to get the WebIDE working along with the other XS services. When I create an empty SAP HANA database project and Build it at the project level I get these errors. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2037929-build-error-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2037930-npm-error.png" /&gt;&lt;/P&gt;
  &lt;P&gt;It seems that &lt;STRONG&gt;async&lt;/STRONG&gt; and &lt;STRONG&gt;micromatch&lt;/STRONG&gt; are two of the dependencies that the package &lt;STRONG&gt;@sap/hdi-deploy&lt;/STRONG&gt; requires but unable to use it seems. &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://www.npmjs.com/package/@sap/hdi-deploy"&gt;https://www.npmjs.com/package/@sap/hdi-deploy&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; Here’s the &lt;B&gt;package.json&lt;/B&gt; file content:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;{
    "name": "deploy",
    "dependencies": {
        "@sap/hdi-deploy": "^4"
    },
    "scripts": {
        "start": "node node_modules/@sap/hdi-deploy/deploy.js"
    }
}&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;When checking this command:&lt;/P&gt;
  &lt;P&gt;&lt;B&gt;xs env di-local-npm-registry | grep UPSTREAM_LINK&lt;/B&gt;&lt;/P&gt;
  &lt;P&gt;I get this output which seems to have the correct values:&lt;/P&gt;
  &lt;P&gt;&lt;B&gt;SAPUPSTREAM_LINK:&lt;/B&gt; &lt;A href="https://npm.sap.com" target="test_blank"&gt;https://npm.sap.com&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;UPSTEAM_LINK:&lt;/STRONG&gt; &lt;A href="http://registry.npmjs.org/" target="test_blank"&gt;http://registry.npmjs.org/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Things I’ve tried but didn’t help:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I tried lowering the value 4 to 3 but that didn't help.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I tried reinstalling the Builder under &lt;STRONG&gt;project settings - space&lt;/STRONG&gt; but that didn't help either.&lt;/P&gt;
  &lt;P&gt;I tried building at different levels of the project and that didn’t help.&lt;/P&gt;
  &lt;P&gt;I tried removing the post script in the package.json file and that didn’t help.&lt;/P&gt;
  &lt;P&gt;I’m not sure where the created project is stored and how to navigate to in in Linux which is what the SAP HANA Express VM installed on. Typing &lt;STRONG&gt;npm ls&lt;/STRONG&gt; is giving me an error when I’m at the &lt;STRONG&gt;&amp;lt;hxehost:hxeadm&amp;gt; &lt;/STRONG&gt;prompt so probably I need to navigate to a certain location. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Ali&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 17:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaq-p/12523114</guid>
      <dc:creator>ali_husain3</dc:creator>
      <dc:date>2022-04-19T17:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: HANA WebIDE (DIBuild) npm ERR! code ETARGET</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaa-p/12523115#M4694068</link>
      <description>&lt;P&gt;Comments from a colleague: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;That version of async is valid: &lt;A href="https://www.npmjs.com/package/async/v/3.2.3"&gt;async - npm (npmjs.com)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;I would have guessed that the upstream link wasn’t correct (and actually the SAPUPSTREAM_LINK isn’t correct), but what they show for UPSTREAM_LINK is OK. Maybe they set the upstream link but didn’t restage or delete the cache as described in the documentation: &lt;A href="https://help.sap.com/docs/SAPWEBIDE/292437fbf7794e2cb0d323b19a38285c/5fd9473b7e994e2aa66092da5a10c75a.html"&gt;Optional: Customizing the Environment - SAP Help Portal&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt; Or maybe their machine requires an HTTPS_PROXY to get to the internet?.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 19 Apr 2022 19:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaa-p/12523115#M4694068</guid>
      <dc:creator>tom_slee</dc:creator>
      <dc:date>2022-04-19T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: HANA WebIDE (DIBuild) npm ERR! code ETARGET</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaa-p/12523116#M4694069</link>
      <description>&lt;P&gt;Thanks Tom. I got it to work by doing a combination of these items:&lt;/P&gt;&lt;P&gt;-        
Changed the &lt;STRONG&gt;SAPUPSTREAM_LINK&lt;/STRONG&gt;
from &lt;A href="https://npm.sap.com" target="test_blank"&gt;https://npm.sap.com&lt;/A&gt; to &lt;STRONG&gt;&lt;A href="https://registry.npmjs.org" target="test_blank"&gt;https://registry.npmjs.org&lt;/A&gt;&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;-        
Done the restage and retest
commands&lt;/P&gt;

&lt;P&gt;-        
Changed &lt;STRONG&gt;@sap/hdi-deploy&lt;/STRONG&gt;
to version ^3&lt;/P&gt;&lt;P&gt;-     Added the &lt;B&gt;engine&lt;/B&gt; section at the end.&lt;/P&gt;&lt;P&gt;I probably need to update the Node version and the SAP packages. I need to figure how to do that on Linux.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name": "deploy",&lt;/P&gt;&lt;P&gt;"dependencies": {&lt;/P&gt;&lt;P&gt;"@sap/hdi-deploy": "^3"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"scripts": {&lt;/P&gt;&lt;P&gt;"start": "node
node_modules/@sap/hdi-deploy/deploy.js"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"engines": {&lt;/P&gt;&lt;P&gt;"node": "^10 || ^12"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;





















&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 09:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-webide-dibuild-npm-err-code-etarget/qaa-p/12523116#M4694069</guid>
      <dc:creator>ali_husain3</dc:creator>
      <dc:date>2022-04-25T09:31:56Z</dc:date>
    </item>
  </channel>
</rss>

