You don't need mocha globally installed for "test" : "mocha test.js" to work. Just as a dev-dependency.