Nodejs hangs on windows

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:

language: node_js
  - "8.9.4"
cache: yarn
  - yarn build
  - yarn test-js
  - 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:

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:

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

1 Like

I have got the same problem, i.e. here:

Any ideas on what can be done to fix this?

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

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

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