cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP application fails with strange node error

Erkan
Explorer
0 Kudos

We tried to run following command but it still fails to build mta for deployment since morning (CET)

echo registry=https://registry.npmjs.org/ > .npmrc
npm ERR! code E404
npm ERR! 404 Not Found - GET http://nginx-redirector.repo-cache.svc.cluster.local/wordwrap/-/wordwrap-1.0.0.tgz
npm ERR! 404
npm ERR! 404 'https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz' is not in this registry.
npm ERR! 404 This package name is not valid, because
npm ERR! 404 1. name can only contain URL-friendly characters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Is it general issue or we are missing something here.

View Entire Topic
marcel_schwarz
Advisor
Advisor

Hi erkandegerli,

please take a look at this previously answered question that appears similar to your issue. It seems as though you are using SAP BAS to develop your SAP CAP application. According to boris.tsirulnik's answer here it is not recommended to change the default NPM registry config as SAP BAS performs its own caching of packages. Therefore I would suggest to remove your custom NPM registry config and retry the build.

Best regards,

Marcel

liat_b
Advisor
Advisor
0 Kudos

Hi marcel.schwarz , erkandegerli ,

There was an issue with the repo cace and this is why we guided users to use this work around.

Anyhow, the repo cache should be disabled today centrally until a fix is provided. eliranaz can you comment on how to disable the cache till then, as it seems the following didn't work: 'echo registry=https://registry.npmjs.org/ > .npmrc' ?

Thanks,

Liat