Your problem is probably related to the path or environment variables your script is working with. Perhaps it launches global mocha instead of the mocha installed in your project, or it may have a different version of cwd.
I highly recommend adding the following to the scripting section of your package.json:
"scripts": {
"test": "mocha --compilers coffee:coffee-script-redux/register test/**/*.coffee --reporter list",
}
npm test. , npm , . , , , , -phantomjs "npm" node.js?. , Windows, Unix OS X.