npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

NPM run watch freezes

What I Wanted to Do

VS-Code, or CMD terminal(both) npm run watch. The packages are on a mapped server folder. I also tried npm run watch directly on server in folder with a bit different results(see below)

What Happened Instead

after 2-5 runs of script (after file changes) npm run watch locks up, have to ctrl-c, and re-run watch.,

on server, I can just hit the enter button and it will run

Reproduction Steps

Laravel - 5.6 mix and 10 componets written in vue. seems to do it.


No pertinant log file created. npm just freezes

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.11.1',
  openssl: '1.0.2o',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.50',
  zlib: '1.2.11' }
$ node -p process.platform
<!-- paste output here -->

Does it work if you run your watch script directly? You will need to prefix your package binaries with .\node_modules\.bin.