Don't suggest npm ci

This commit is contained in:
Jack Kingsman
2026-03-13 14:46:55 -07:00
parent cb9c9ae289
commit bd19015693
4 changed files with 9 additions and 7 deletions

View File

@@ -223,7 +223,7 @@ MESHCORE_SERIAL_PORT=/dev/cu.usbserial-0001 uv run uvicorn app.main:app --reload
```bash
cd frontend
npm ci
npm install
npm run dev # http://localhost:5173, proxies /api to :8000
```
@@ -237,7 +237,7 @@ Terminal 2: `cd frontend && npm run dev`
In production, the FastAPI backend serves the compiled frontend. Build the frontend first:
```bash
cd frontend && npm ci && npm run build && cd ..
cd frontend && npm install && npm run build && cd ..
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000
```

View File

@@ -77,7 +77,7 @@ cd Remote-Terminal-for-MeshCore
uv sync
# Build frontend
cd frontend && npm ci && npm run build && cd ..
cd frontend && npm install && npm run build && cd ..
# Run server
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000
@@ -175,7 +175,7 @@ uv run uvicorn app.main:app --reload
```bash
cd frontend
npm ci
npm install
npm run dev # Dev server at http://localhost:5173 (proxies API to :8000)
npm run build # Production build to dist/
```
@@ -300,7 +300,7 @@ sudo -u remoteterm uv sync
# Build frontend (required for the backend to serve the web UI)
cd /opt/remoteterm/frontend
sudo -u remoteterm npm ci
sudo -u remoteterm npm install
sudo -u remoteterm npm run build
# Install and start service

View File

@@ -164,5 +164,7 @@ def register_frontend_missing_fallback(app: FastAPI) -> None:
async def frontend_not_built():
return JSONResponse(
status_code=404,
content={"detail": "Frontend not built. Run: cd frontend && npm ci && npm run build"},
content={
"detail": "Frontend not built. Run: cd frontend && npm install && npm run build"
},
)

View File

@@ -28,7 +28,7 @@ def test_missing_dist_logs_error_and_keeps_app_running(tmp_path, caplog):
with TestClient(app) as client:
resp = client.get("/")
assert resp.status_code == 404
assert "npm ci" in resp.json()["detail"]
assert "npm install" in resp.json()["detail"]
assert "npm run build" in resp.json()["detail"]