Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12201

"'ts-node' is not recognized as an internal or external command, operable program or batch file" error even with npx

$
0
0

'ts-node' is not recognized as an internal or external command, operable program or batch file is about common problem: the installing of the npm package to the project does not mean the installing of it to PC, thus the OS don't know where to find the command. Here, the global installation and usage of npx are standard solutions.

But I still got:

'ts-node' is not recognized as an internal or external command, operable program or batch file

when I tried to run ts-nodevia npx.

As you see in the picture below, npx ncu works well:

enter image description here

I have not run the cowsay utility previously, so if I run npx cowsay wow, I will be prompted about installation:

enter image description here

Now, run npx ts-node test.ts. As you see, npx neither suggested my install it nor executed the existing file text.ts:

enter image description here

(My Windows 10 is Japanese, so the console output is Japanese too. That output means "'ts-node' is not recognized as an internal or external command, operable program or batch file".)


Viewing all articles
Browse latest Browse all 12201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>