nodejs / nodejs/node

Does/should the REPL support `--watch`?

未关闭
#64,135 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

confirmed-bug repl
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 3 小时
30 天内合并 PR
272

描述

Version

v26.3.0

Subsystem

REPL

What steps will reproduce the bug?
node --watch
What is the expected behavior? Why is that the expected behavior?
$ node --inspect
node: REPL does not support --watch

There is no script to watch.

What do you see instead?
$ node --watch
Welcome to Node.js v26.3.0.
Type ".help" for more information.
> 
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
> 

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先运行报告中的 node --watch 命令,并检查 REPL 入口点以及现有的 --watch 选项处理方式。该 issue 没有指定文件或测试;完成条件是就 REPL 中 --watch 的行为达成一致,并验证该命令始终遵循这一行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。