Update fastapi-vue-setup.

This commit is contained in:
2026-02-10 21:46:40 +00:00
parent a9e6c2a145
commit d24f9bdc77
3 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ def _check_node_version(node_path: str) -> None:
"""
try:
result = subprocess.run(
[node_path, "--version"], capture_output=True, encoding="utf-8", check=True
[node_path, "--version"], capture_output=True, text=True, check=True
)
version_str = result.stdout.strip()
# Parse version like "v20.10.0" or "v18.17.1"
+1 -6
View File
@@ -207,10 +207,5 @@ def setup_cli(
host = endpoints[0]["host"]
port = endpoints[0]["port"]
cmd = [
sys.executable,
"-m",
cli,
f"--listen={host}:{port}",
]
cmd = [cli, f"--listen={host}:{port}"]
return f"http://{host}:{port}", cmd