-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Open
Labels
watch-modeIssues and PRs related to watch modeIssues and PRs related to watch mode
Description
Platform
*
Subsystem
watch-mode
What steps will reproduce the bug?
$ node --watchHow often does it reproduce? Is there a required condition?
*
What is the expected behavior? Why is that the expected behavior?
Note: The
--watchflag requires a file path as an argument and is incompatible with--runor inline script input, as--runtakes precedence and ignores watch mode. If no file is provided, Node.js will exit with status code9.
$ node --version
v25.0.0
$ node --watch
node: --watch requires specifying a file
$ echo $?
9What do you see instead?
$ node --version
v25.1.0
$ node --watch
Welcome to Node.js v25.1.0.
Type ".help" for more information.
> .exit
Completed running ''. Waiting for file changes before restarting...
$ echo $?
0Additional information
Probably relates to #60178 (cc @marco-ippolito)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
watch-modeIssues and PRs related to watch modeIssues and PRs related to watch mode