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
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:

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

1 Like

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

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.

Imprint