Nodeunit command not found? Nodeunit command not found? node.js node.js

Nodeunit command not found?


In Windows 7

You should install your nodeunit globally with the -g flag

npm install nodeunit -g

Check your PATH by typing the PATH command in windows console. If you dont find the C:\Users\Username\AppData\Roaming\npm; value, you should check your environment variables, and if not containing, add it manually (replace the Username to your username).

But I think node installer adds it automatically.

In XP

The AppData\Roaming folder in Windows Vista or Windows 7 is the same as the Documents and Settings\username\Application Data folder in Windows XP.
So your variable should look like C:\Documents and Settings\Username\Application Data\npm;


Try "npm install -g nodeunit". The -g installs it globally. It's a fairly recent change, so most old documentation doesn't mention it.


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.