# Nodejs hangs on windows

**URL:** <https://travis-ci.community/t/nodejs-hangs-on-windows/1492>\
**Category:** Node.js\
**Tags:** build-env\
**Created:** [December 18, 2018, 9:45am UTC](https://travis-ci.community/t/nodejs-hangs-on-windows/1492 "2018-12-18T09:45:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brikendr](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@brikendr](https://travis-ci.community/u/brikendr)\
**Post date:** [December 18, 2018, 9:45am UTC](https://travis-ci.community/t/nodejs-hangs-on-windows/1492/1 "2018-12-18T09:45:17Z")

</div>

Running nodejs scripts from package.json using yarn on windows hangs even after the script exits with exit code 0.

I have the following travis yml file:

```auto
language: node_js
node_js:
  - "8.9.4"
cache: yarn
script:
  - yarn build
  - yarn test-js
os:
  - linux
  - osx
  - windows

```

The build script includes compiling some typescript files into js, running eslint and finally running unit tests using mocha. The same script succeeds on linux and osx but not on windows. Even though the end of the log says `Done. Your build exited with 0.` the job continues to run, and after 14 minutes it fails with error message:

```auto
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

```

Would appreciate if i could get some help on this.  
Thank you

---

<div class="post-metadata">

**Author:** ![dennisreimann](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dennisreimann/32/2817_2.png) [@dennisreimann](https://travis-ci.community/u/dennisreimann)\
**Post date:** [October 2, 2019, 6:50am UTC](https://travis-ci.community/t/nodejs-hangs-on-windows/1492/2 "2019-10-02T06:50:41Z")

</div>

I have got the same problem, i.e. here: [https://travis-ci.org/dennisreimann/uiengine/jobs/592405150](https://travis-ci.org/dennisreimann/uiengine/jobs/592405150)

Any ideas on what can be done to fix this?

---

<div class="post-metadata">

**Author:** ![ctmuthu93](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ctmuthu93/32/2845_2.png) [@ctmuthu93](https://travis-ci.community/u/ctmuthu93)\
**Post date:** [October 7, 2019, 10:11am UTC](https://travis-ci.community/t/nodejs-hangs-on-windows/1492/3 "2019-10-07T10:11:16Z")

</div>

@dennisreimann did you solve the issue. I have got the same problem.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [October 7, 2019, 12:14pm UTC](https://travis-ci.community/t/nodejs-hangs-on-windows/1492/4 "2019-10-07T12:14:44Z")

</div>

A common cause is that you have some background process running which is preventing the script to terminate.

---

<div class="post-metadata">

**Author:** ![ctmuthu93](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ctmuthu93/32/2845_2.png) [@ctmuthu93](https://travis-ci.community/u/ctmuthu93)\
**Post date:** [October 7, 2019, 12:27pm UTC](https://travis-ci.community/t/nodejs-hangs-on-windows/1492/5 "2019-10-07T12:27:41Z")

</div>

Yeah I got it. Killed the process manually. Now it’s fine.
