cancel
Showing results for 
Search instead for 
Did you mean: 

Building of CAP project fails (npm registry sap/cds-dk)

DanielSchneider
Explorer
0 Kudos

Hi,

I wanted to re-build a successfully deployed cap project (after implementing small adjustments) but it fails now.

I'm using an mta.yaml file. Before I can deploy it, I have to build it: building fails.

To me it seems that SAP is currently adding/changing dependencies in the cds package.

I get the following error:

INFO executing the "npx -p @sap/cds-dk cds build --production" command...
........npm ERR! code E404
npm ERR! 404 Not Found - GET http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/@sap/cds/-/cds-5...
npm ERR! 404 
npm ERR! 404  '@sap/cds@5.3.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of '@sap/cds-dk'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Yesterday I got an error for a missing lint package, also noted as a dependency of sap/cds-dk. Since today that seems no problem anymore but now there is a different package missing, I'm concluding that SAP is currently working on dependencies of sap/cds-dk.

Can you please confirm and if I'm correct, when do you think everything will be 'buildable' again?

Thank you in advance

Daniel

View Entire Topic
mofadili
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Team,

I am having the same issue on my SAP internal global account.

It appeared in a workspace which was working fine 2 days ago.

It looks like the following command does solve the issue:

npm config set @sap:registry https://npm.sap.com
But I have to run it each time I restart the workspace.
Regards
TiagoAlmeida
Participant
0 Kudos

We have the same issue. This has started on 04/02/2022 in eu10 BAS. Thank you

boris.tsirulnik