nerve start -d 后 status 显示 not running(daemon 立即退出) #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
nerve start -d报告启动成功,但nerve status立即显示 not running。Root Cause
packages/cli/src/commands/start.ts第 101-103 行:selfPath指向start.js(命令模块),而非 CLI 入口cli.js。子进程执行node start.js start,但start.js只 export 了 command definition,没有 CLI 入口逻辑,所以进程立即退出。Fix
将
selfPath改为 CLI 入口文件路径(cli.js),或者在 start 模块中检测NERVE_DAEMON_MODE环境变量时直接执行 foreground 逻辑。Reproduce
Priority
High — daemon 模式完全不可用。