# Large number of "node\_modules/\*\*/\*.js already exists, no checkout" log messages

**URL:** <https://travis-ci.community/t/large-number-of-node-modules-js-already-exists-no-checkout-log-messages/10627>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** bug\
**Created:** [November 19, 2020, 11:09am UTC](https://travis-ci.community/t/large-number-of-node-modules-js-already-exists-no-checkout-log-messages/10627 "2020-11-19T11:09:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rap2h](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/rap2h/32/4670_2.png) [@rap2h](https://travis-ci.community/u/rap2h)\
**Post date:** [November 19, 2020, 11:09am UTC](https://travis-ci.community/t/large-number-of-node-modules-js-already-exists-no-checkout-log-messages/10627/1 "2020-11-19T11:09:43Z")

</div>

After the deployment step, Travis seems to do a `git stash` and this is generating a large number of log entries which is causing a “The job exceeded the maximum log length, and has been terminated.” error.

The log messages are generated after my deployment scripts are executed. Is there a way to turn off this “git stash” log?

Example here: [https://travis-ci.com/github/ForestAdmin/forest-express/jobs/443393577](https://travis-ci.com/github/ForestAdmin/forest-express/jobs/443393577)

_(cc @j3ko who posted a similar question some days ago)_

---

<div class="post-metadata">

**Author:** ![j3ko](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/j3ko/32/5526_2.png) [@j3ko](https://travis-ci.community/u/j3ko)\
**Post date:** [November 19, 2020, 11:33am UTC](https://travis-ci.community/t/large-number-of-node-modules-js-already-exists-no-checkout-log-messages/10627/2 "2020-11-19T11:33:21Z")

</div>

I ran into this problem recently as well. From what I could tell there is no way of turning off these log messages. My workaround was to reset the working directory to a fresh checkout state (ie. delete node\_modules, dist, build etc…) after you have finished deploying. If there’s no changes to stash, no log messages are generated.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 19, 2020, 12:23pm UTC](https://travis-ci.community/t/large-number-of-node-modules-js-already-exists-no-checkout-log-messages/10627/3 "2020-11-19T12:23:26Z")

</div>

Add [`skip_cleanup: true`](https://docs.travis-ci.com/user/deployment/#uploading-files-and-skip_cleanup) to the `deploy:` entry to prevent Travis from doing `git stash`.
