how to check that mocha is installed code example Example: mocha zsh: command not found: mocha npm install -g mocha