I can't run test with “vows test/*” command on windows. How to use it? node.js

StackOverflow https://stackoverflow.com/questions/10847033

  •  12-06-2021
  •  | 
  •  

문제

I've installed vows as module of my project and I've added the path "node_modules\vows\bin" to my environment path variable of windows vista.

note: I've also renamed "node_modules\vows\bin\vows" to vows.exe, because without the extension I get this error: 'vows' is not recognized as an internal or external command, operable program or batch file.

Now wherever I put "vows" in my cmd in windows nothing happens, I cd into my test folder and I run "vows myFirstTest.js" and nothing happens. (when I say nothing happens my cursor in cmd is going to the top and then return to it's original position and it's doing this forever, therefore each time I try a vows command in cmd I have to close the cmd to run another command).

What I'm doing bad?

thanks

도움이 되었습니까?

해결책

NPM is great at globally installing packages and making the executable for each operating system (UNIX-ish + Windows), so proceed with the following:

npm install -g vows
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top