Resolving npm ERR! notarget @sap/hdi-deploy@5.5.0 in SAP Business Application Studio

Sunday, Jul 27, 2025 11:18 pm ET1min read

When creating a CAP project in SAP Business Application Studio (BAS), users may encounter an error message "npm ERR! notarget @sap/hdi-deploy@5.5.0." This occurs because the latest version of cds-dk (8.x) requires @sap/hdi-deploy@5.5.0, which is not yet published on npm. The fix is to install the latest cds-dk (9.x) and the rest of the dependencies.

When creating a CAP project in SAP Business Application Studio (BAS), users may encounter an error message: "npm ERR! notarget @sap/hdi-deploy@5.5.0." This error occurs because the latest version of the development toolkit, cds-dk (8.x), requires the @sap/hdi-deploy package version 5.5.0, which is not yet available on npm. This discrepancy causes the npm install command to fail, leading to the ETARGET error.

To resolve this issue, users should upgrade to the latest version of cds-dk, which is currently 9.1.3. This version points to @sap/hdi-deploy@5.4.2, which is available on npm and resolves the error. Users can follow these steps to fix the issue:

1. Clean old modules and cache:
```bash
rm -rf node_modules package-lock.json
npm cache clean --force
```

2. Install the latest cds-dk:
```bash
npm install -D @sap/cds-dk@latest
```

3. Install the rest of the dependencies:
```bash
npm install
```

By following these steps, users can successfully create a CAP project in BAS without encountering the npm ERR! notarget error.

References:
[1] https://community.sap.com/t5/technology-blog-posts-by-sap/how-to-fix-npm-err-notarget-sap-hdi-deploy-5-5-0-when-you-create-a-cap-app/ba-p/14163890
[2] https://www.npmjs.com/package/@sap/cds-dk

Resolving npm ERR! notarget @sap/hdi-deploy@5.5.0 in SAP Business Application Studio

Comments



Add a public comment...
No comments

No comments yet