Showing results for 
Search instead for 
Did you mean: 

[CAP][CDS-TS] Powershell -> The term 'ts-node.exe' is not recognized as a name of a cmdlet,..

Active Participant

Hi there,

When trying to use cds-ts with PowerShell I received the following error message:

&: C:\Users\<user>\AppData\Roaming\npm\cds-ts.ps1:15:5
Line |
  15 |    & "ts-node$exe"  "$basedir/node_modules/@sap/cds-dk/bin/cds-ts.js"  …
     |      ~~~~~~~~~~~~~
     | The term 'ts-node.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Removing $exe solves the issue for me. Might be something to look into.

Best regards,


0 Kudos

Thank you Tobias, your workaround worked perfectly!

Best regards,


Accepted Solutions (0)

Answers (1)

Answers (1)

Active Participant

Hello CAPpers,

after following other suggestions as well to save adjustment efforts of the cds-ts module all the time, I I've tried to set newly installed Powershell 7 as default under settings in Terminal as well, so VSCode opens new Powershell 7 (pwsh) as default terminal.
I stilled faced the issue, as alternate I tried to run it with

npx cds-ts run 

It seems working properly including debugging, so I started to use it in package.json and launch.json in VSCode.

Best regards