i tried running
$npm install mocha --save-dev 
and then
$mocha
the result is
$-bash: mocha: command not found
If install it globally it works but what if I want to use a package version on this project only
Is there a way to make it works without installing it globally?
I am on a mac 10.11 el capitan
You can use the npx command to run local dependencies
Try the command:
 npx mocha
                        Since you haven't installed mocha globally you have to point terminal to your package's local directory
Run this command instead:
./node_modules/.bin/mocha
this will run the locally installed mocha package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With