添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

If you try to install the new NPM Package for CDS command line tools - @Sap /cds-dk ( CAP https://cap.cloud.sap/docs/about/#tools-support ) on your local Windows machine you may get this error "npm ERR! code ELIFECYCLE" and installation fails.


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
Artificial Intelligence (AI) 1 Business Trends 363 Business Trends​ 8 Digital Transformation with Cloud ERP (DT) 1 Event Information 462 Event Information​ 15 Expert Insights 114 Expert Insights​ 76 Life at SAP 418 Life at SAP​ 1 Product Updates 4 Artificial Intelligence (AI) blockchain Data & Analytics Intelligent Enterprise Oil Gas IoT Exploration Production Artificial Intelligence (AI) blockchain Data & Analytics Intelligent Enterprise sustainability responsibility esg social compliance cybersecurity risk Catalyst for Efficiency: Revolutionizing SAP Integration Suite with Artificial Intelligence (AI) and