iloom-flatten/.microcompact/mpm69t2r/functions.Bash:28.txt

1 line
809 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"exitCode":-1,"output":"","stderr":"🛡️ 命令已被拦截 - 该命令可能会破坏 sandbox 运行环境\n\n❌ 拦截原因:\n以下命令可能会杀掉 sandbox 内置服务进程SDK server、log server、dev server、cors proxy 等),导致沙箱崩溃:\n - `pkill -f \"webpack serve\" 2>/dev/null` 中的模式 \"webpack serve\" 过于宽泛\n\n💡 建议:\n请使用更精确的方式停止目标进程\n 1. 通过端口查找:`lsof -i :PORT -t | xargs kill` 只杀占用特定端口的进程\n 2. 通过精确路径匹配:`pkill -f \"/home/project/.*serve\"` 只杀用户项目内的进程\n 3. 通过 PID先 `ps aux | grep xxx` 确认目标 PID再 `kill PID`\n 4. 如果要停止 dev server直接运行新的 `npm run dev` 即可(会自动替换旧进程)"}