mocha produces no output

739 views
Skip to first unread message

Christian Lau

unread,
Sep 22, 2014, 9:17:29 AM9/22/14
to moc...@googlegroups.com
Hi,

I'm new to mocha, so please be gentle. I'm running 32bit Kubuntu 14.04 kernel 3.13.0-32-generic with node v0.10.32 and I've installed mocha exactly as described in the documentation. (npm install -g mocha)  The install seemed to work fine after I ran it with sudo (which I found a bit odd, because the documentation doesn't mention this). /usr/bin/mocha was not added to the PATH, so I did that. When I run mocha in a test directory, even specifying the test file, it returns nothing on the command line (I mean nothing... not even the 'command not found error). I'm expecting either the test results or some or other error message. I've search Google and Stackoverflow with no luck. Any help would be appreciated.

Regards
Christian

Franco Robles

unread,
Sep 22, 2014, 10:44:54 PM9/22/14
to moc...@googlegroups.com
Maybe you want to check the path where mocha is installed. I have this experience in chutzpah where I specified the output path but the test result was created in its directory.

Christian Lau

unread,
Sep 23, 2014, 10:42:25 AM9/23/14
to moc...@googlegroups.com
Ha! I found the solution. It turns out that due to naming conflict in Ubuntu, there is already a package called node (Amateur Packet Radio Node Program) and the node binary has been renamed to nodejs. Here are the details: http://askubuntu.com/questions/235655/node-js-conflicts-sbin-node-vs-usr-bin-node
Reply all
Reply to author
Forward
0 new messages