Tuesday, March 14, 2017

SAP HANA Express - XSA - NPM errors

In a fresh HANA express install, some variables must be set in order to the system download and install the NPM packages correctly.

error message:

npm ERR! 404 no such package available : jade

Some configuration must be set in di-local-npm-registry application.

Solution:

$ xs set-env di-local-npm-registry UPSTREAM_LINK http://registry.npmjs.org/
$ xs restage di-local-npm-registry
$ xs restart di-local-npm-registry


References:
https://answers.sap.com/questions/42964/hana-express-vm-tutorials-packagejson-dependencies.html
https://blogs.sap.com/2017/02/02/xs-advanced-nodejs-upstream-registry/
- https://bitbucket.org/alunde/mta_upstream_registry
https://archive.sap.com/discussions/thread/3921267

1 comment: