on ‎2022 Feb 22 7:44 AM
I try to deploy a project to cloud foundry . Steps are followed by link https://developers.sap.com/tutorials/hana-cloud-cap-deploy-mta.html. Below errors occur.
npm notice New minor version of npm available! 8.1.2 -> 8.5.1 (STDOUT, STG)#
npm notice (STDOUT, STG)#npm notice (STDOUT, STG)#
npm ERR! errno ENOTFOUND (STDOUT, STG)#
npm ERR! syscall getaddrinfo (STDOUT, STG)#
npm ERR! code ENOTFOUND (STDOUT, STG)#
npm ERR! network 'proxy' config is set properly. See: 'npm help config' (STDOUT, STG)#
................
npm ERR! network This is a problem related to network connectivity. (STDOUT, STG)#
npm ERR! network request to http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/@sap/audit-loggi... failed, reason: getaddrinfo ENOTFOUND nginx-redirector.repo-cache.svc.cluster.local (STDOUT, STG)#
[31;1m**ERROR**[0m Unable to build dependencies: exit status 1 (STDOUT, STG)#
Request clarification before answering.
In mta.yaml, change `npm ci` to `npm install`. Remove the `npm-ci` builder line.
Alternatively, you would need to create a 'clean' package-lock.json. You can try with a `.npmrc file` with this content:
@sap:registry=https://registry.npmjs.org
registry=https://registry.npmjs.org/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check your .npmrc file. There was a line break missing in the code sample of my previous comment.
Check with `npm config list` that `registry` and `@sap:registry` keys are set properly.
After that try first creating the file, avoiding the expensive build roundtrip
rm -f package-lock.json && npm installThen check the package-lock file that no bad registry URL is included.
Hi Christian Georgi,
I have followed the above steps, Below is my setting.


After I run the command "rm -f package-lock.json && npm install",
the content is still the same as
"resolved": "http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/@colors/colors/-/colors-1.5.0.tgz".It seems not working.| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.