cancel
Showing results for 
Search instead for 
Did you mean: 

'cds' is not recognized as an internal or external command after successfull npm install

anjana_mehta
Explorer
5,914

I am beginner and was going the tutorial https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html

I was able to successfully install Node js and run code npm i -g @sap/cds-dk

After that when I type cds, it gives me error message as 'cds' is not recognized as an internal or external command.

Any idea what am I missing here?

Accepted Solutions (1)

Accepted Solutions (1)

pieterjanssens
Active Participant

Assuming that the installation of the global package was successful, this is likely an issue with your OS/terminal environment variable that contains the path to all directories containing executable binaries. Depending on your host OS, check if your environment $PATH is containing the location of the global node .bin folder.

anjana_mehta
Explorer
0 Kudos

Thanks for the quick reply.

Answers (1)

Answers (1)

RubikWal
Discoverer
0 Kudos

Instead of : npm install -g @SAP/cds 

use: npm add -g @SAP/cds-dk