Closed
Description
Version
v19.8.1
Platform
Darwin [redacted] 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64
Subsystem
command line options?
What steps will reproduce the bug?
With this file as index.js
:
console.log('hello')
Run any of the following commands:
node --watch-path=./index.js index.js
node --watch-path=./ index.js
node --watch-path=./index.js --watch index.js
node --watch-path=./index.js --watch-preserve-output index.js
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
I would expect the index.js file to run and "hello" be printed to the screen every time the file changes.
What do you see instead?
I see the messages of Restarting index.js
, but no hello
.
Additional information
No response