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

HANA WebIDE (DIBuild) npm ERR! code ETARGET

ali_husain3
Explorer
1,565

Hello,

I was wondering if anyone can help me with an issue I’m facing when Building an empty SAP HANA Database project in WebIDE.

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.

It seems that async and micromatch are two of the dependencies that the package @sap/hdi-deploy requires but unable to use it seems.

https://www.npmjs.com/package/@sap/hdi-deploy

Here’s the package.json file content:

{
    "name": "deploy",
    "dependencies": {
        "@sap/hdi-deploy": "^4"
    },
    "scripts": {
        "start": "node node_modules/@sap/hdi-deploy/deploy.js"
    }
}

When checking this command:

xs env di-local-npm-registry | grep UPSTREAM_LINK

I get this output which seems to have the correct values:

SAPUPSTREAM_LINK: https://npm.sap.com

UPSTEAM_LINK: http://registry.npmjs.org/

Things I’ve tried but didn’t help:

I tried lowering the value 4 to 3 but that didn't help.

I tried reinstalling the Builder under project settings - space but that didn't help either.

I tried building at different levels of the project and that didn’t help.

I tried removing the post script in the package.json file and that didn’t help.

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 npm ls is giving me an error when I’m at the <hxehost:hxeadm> prompt so probably I need to navigate to a certain location.

Thanks,

Ali

Accepted Solutions (0)

Answers (1)

Answers (1)

tom_slee
Product and Topic Expert
Product and Topic Expert
0 Likes

Comments from a colleague:

  • That version of async is valid: async - npm (npmjs.com)
  • 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: Optional: Customizing the Environment - SAP Help Portal
  • Or maybe their machine requires an HTTPS_PROXY to get to the internet?.
ali_husain3
Explorer
0 Likes

Thanks Tom. I got it to work by doing a combination of these items:

- Changed the SAPUPSTREAM_LINK from https://npm.sap.com to https://registry.npmjs.org

- Done the restage and retest commands

- Changed @sap/hdi-deploy to version ^3

- Added the engine section at the end.

I probably need to update the Node version and the SAP packages. I need to figure how to do that on Linux.


{

"name": "deploy",

"dependencies": {

"@sap/hdi-deploy": "^3"

},

"scripts": {

"start": "node node_modules/@sap/hdi-deploy/deploy.js"

},

"engines": {

"node": "^10 || ^12"

}

}