Can not load reporter "mocha", it is not registered!

I have ‘Can not load reporter “mocha”, it is not registered!’ error in test section.

my cicle.yml file
node:
version: 7.10.0

dependencies:
override:
- npm cache clean
- npm install
- npm install -g bower
- bower install --allow-root

Locally my build works fine. Why it happens in circleci build I do not know, any thoughts???