node.jstestingvows

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


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


Solution

  • 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