Have installed Node version manager ‘n’.
Installed ‘mocha’ using
n npm 0.6.4 install mocha -g.
Now when I try to access it using
mocha -R spec
I get an error ‘command not found’. Is there some option I’m missing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
‘n’ is the version manager and not the package manager. In other words, you use ‘n’ to install different versions of NodeJS. You’ll use npm to install packages like mocha.
Type
n 0.6.4will install NodeJS version 0.6.4 and set it in your path.Type
npm install mocha -gwill install mocha as global module.Run both the above commands in order, then you’ll find mocha in your path.