# Mocha not found!

**URL:** <https://travis-ci.community/t/mocha-not-found/12526>\
**Category:** Node.js\
**Tags:** travis-build\
**Created:** [December 21, 2021, 2:51pm UTC](https://travis-ci.community/t/mocha-not-found/12526 "2021-12-21T14:51:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emre-unaldi](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/emre-unaldi/32/7530_2.png) [@emre-unaldi](https://travis-ci.community/u/emre-unaldi)\
**Post date:** [December 21, 2021, 2:51pm UTC](https://travis-ci.community/t/mocha-not-found/12526/1 "2021-12-21T14:51:08Z")

</div>

Hello friends  
I’m trying to develop a restful api with nodejs and I want to integrate the application that I went live with heroku with travis, but even though I did everything, mocha: not found  
The command “npm run test” exited with 127 error. I would be very grateful if you could help me with my first use of Travis.

 ![travis](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/6/6d25dc92a9325ca28405d15c26db19c2ffee4b0f.png)

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [December 21, 2021, 7:38pm UTC](https://travis-ci.community/t/mocha-not-found/12526/2 "2021-12-21T19:38:58Z")

</div>

Try adding:

```auto
before_script:
  - npm run bootstrap

```

To your `.travis.yml`.
