Alex Rivera | Logout

Nodeunit command not found?

Asked 2011-06-08T20:12:06.150
11

I'm running on Windows 7 and have node installed fine with cygwin. I am following along on the how to on mcmahon's website for nodeunit: http://caolanmcmahon.com/posts/unit_testing_in_node_js .

I used npm to install nodeunit and it said it had installed fine but when I go to invoke it, nodeunit, it says command not found in all the different directories.

Do I have to set some kind of path variable maybe?

Edit
Report

1 Answer

1

Install the node from official windows installer no need to work with cygwin version in windows. The link is http://nodejs.org/dist/v0.10.12/node-v0.10.12-x86.msi .

Open the command prompt as administrator privilege. Press windows key -> type cmd -> press ctr+shift+enter . This will open the command prompt as administrator. Type npm install -g nodeunit . This will make nodeunit available on the prompt.

answered 2013-06-19T02:58:19.543

Your Answer