mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 01:50:21 +08:00
Before this change, deeptutor start on a fresh source checkout (git clone + pip install -e .[cli]) crashed immediately with: Error: Cannot find module '...web/node_modules/next/dist/bin/next' RuntimeError: Frontend exited with code 1 because _resolve_frontend() ran pm run dev without checking whether web/node_modules existed first. Fix: when the source web dir is detected and ode_modules is absent, run pm ci (or pm install if no lockfile) automatically before handing control to the dev server. A non-zero exit raises a clear SystemExit so the user sees the npm error and knows what to fix. Closes #709