Technical Articles
CDS cli npm install Error @sap/cds-dk Windows (ELIFECYCLE)
npm install -global @sap/cds-dk
Luckily SAP provide a hint:
The command 'cds' has moved from library @sap/cds to @sap/cds-dk. It is recommended to remove the global version of @sap/cds and reinstall @sap/cds-dk via npm rm -g @sap/cds npm i -g @sap/cds-dk
So you do as you’re told:
npm rm -g @sap/cds
npm i -g @sap/cds-dk
and… Damn!
Solution
Find your installation directory of the global npm packages (usually C:\Users\<User Name>\AppData\Roaming\npm\node_modules)
npm root -g
rd C:\Users\<User Name>\AppData\Roaming\npm\node_modules\@sap\cds /S
And finally
npm install -global @sap/cds-dk
CAP Tutorial: https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html
CAP CodeJam Material: https://github.com/SAP-samples/cloud-cap-nodejs-codejam
I got the following problem with the WebIDE generated SAP Business Application template:
The build process would always fail at the database module build as follows
and I managed to fix it by forcibly adding the
into the .build.js of the db module of the RTH application