[Docs]: chore(web): drop --legacy-peer-deps from Dockerfile and docs after lockfile sync
Before filing
- [x] I have searched the existing docs issues and this report is not already filed.
- [x] This is about the docs at https://deeptutor.info — not a product bug.
Page URL
https://github.com/HKUDS/DeepTutor/blob/dev/Dockerfile#L33
What kind of issue?
Inaccurate or out-of-date content
What's wrong?
Follow-up for #2293, split out of #2295 to keep that PR focused on the lockfile.
Places that still teach the masked install command:
Dockerfile:33- the web image build installs with--legacy-peer-depsREADME.md:323- quick start snippet- roughly 22 other mentions across docs
--legacy-peer-deps hides peer-resolution gaps, which is exactly how the
highlight.js mismatch in #2293 went unnoticed; in the Docker image it also
means prosemirror-highlight can resolve a different highlight.js major than
CI/dev.
Scope
- Switch the Dockerfile web stage to bare
npm ci(or leave a comment explaining why the flag must stay). - Update the README quick start so contributors run
npm ci. - Re-check the CI jobs once the install gate flip in #2295 has a green run.
Acceptance
- No
--legacy-peer-depsremains inDockerfile, README quick starts, or user-facing install docs (or an inline comment explains the exception). - Docker web build succeeds with bare
npm ci. npm cistill works for contributors on Node 22 without extra flags.
I'm happy to take this one as well once #2295 lands.
What did you expect?
No response
Environment (optional)
No response
Scope update: #2295 is now a lockfile-only change, so the CI gate flip lands here too. Both web jobs in .github/workflows/tests.yml still install with --legacy-peer-deps after that revert.
Suggested order: land the lockfile sync first, then flip CI + Dockerfile + README to bare npm ci in one change, backed by a green run - which is the part that cannot be validated while the workflow is waiting on first-time-contributor approval.