Skip to content

docs: document pnpm install as unsupported (#24)#25

Merged
siddhant573 merged 3 commits intoLambdaTest:mainfrom
gaurav0107:fix/24-v16-runner-not-found-when-installed-via
May 7, 2026
Merged

docs: document pnpm install as unsupported (#24)#25
siddhant573 merged 3 commits intoLambdaTest:mainfrom
gaurav0107:fix/24-v16-runner-not-found-when-installed-via

Conversation

@gaurav0107
Copy link
Copy Markdown
Contributor

Summary

Documents the failure mode reported in #24 so users installing @testmuai/kane-cli via pnpm can recognise and work around it, without pretending to fix the underlying resolver bug (which lives in the downstream runtime).

Two new sections:

  • docs/user-guide/installation.md → "Install with pnpm or yarn" — explains why pnpm currently fails (its node_modules/ layout is one level deeper than the v16-runner resolver searches), lists the three already-supported install paths (npm global, Homebrew, install.sh), and flags yarn as unverified.
  • docs/user-guide/troubleshooting.md → "CLI exits with code 2 and no output" — covers the two common causes (missing auth/setup, unsupported package manager) and points at KANE_DEV_MODE=1 as the diagnostic that converts a silent exit into an actionable error line.

The two sections cross-reference each other, and both link back to #24 so the runtime fix and the docs can converge cleanly. Nothing outside docs/user-guide/ is touched, so there is no overlap with PR #12 (README) or PR #14 (CI).

Test plan

  • Both files render correctly on GitHub (verified locally by reviewing the diff against the existing heading style, code-fence language tags, and list conventions in the same files).
  • New internal anchors resolve:
    • installation.mdtroubleshooting.md#cli-exits-with-code-2-and-no-output
    • troubleshooting.mdinstallation.md#install-with-pnpm-or-yarn
    • troubleshooting.md#authentication-failed (existing section in the same file)
  • No existing headings are renamed, so README.md's whole-file links to both files continue to work, and troubleshooting.md's existing installation.md#updates link is unaffected.
  • All factual claims match issue v16-runner not found when installed via pnpm (resolver paths missing project-root level) #24 (3-level resolver depth, silent exit 2, KANE_DEV_MODE=1 behaviour, SCREENSHOT_SAS_OK log marker context).
  • CONTRIBUTING.md scope: documentation improvements are explicitly in scope; code is not touched.

Refs: #24

gaurav0107 added 2 commits May 7, 2026 00:36
…g note

Users installing @testmuai/kane-cli via pnpm hit a silent exit with
status 2 because the v16-runner resolver in dist/index.js only searches
three levels above the package's dist/ directory, while pnpm places the
project-root node_modules/ four levels up. Without KANE_DEV_MODE=1 the
CLI produces no stdout or stderr, which makes the failure mode hard to
recognise.

This change only documents the user-visible symptom and the workaround;
the actual resolver fix lives in the downstream runtime and is tracked
in issue LambdaTest#24.

- docs/user-guide/installation.md: new "Install with pnpm or yarn"
  subsection that lists pnpm as unsupported, points at the new
  troubleshooting entry, and re-states the three supported install
  paths (npm global, Homebrew, shell installer).
- docs/user-guide/troubleshooting.md: new "CLI exits with code 2 and
  no output" entry covering the two common causes (missing
  auth/setup, pnpm install) and the KANE_DEV_MODE=1 diagnostic.

Refs: LambdaTest#24
Replaces the "one level deeper" phrasing (which depends on whether pnpm
is in hoisted or isolated mode) with a mode-independent explanation:
pnpm stores packages under node_modules/.pnpm/ and the resolver does
not search far enough up the tree to reach that layout.

Refs: LambdaTest#24
@gaurav0107 gaurav0107 changed the title docs: document pnpm as unsupported and add exit-code-2 troubleshooting note docs: document pnpm install as unsupported (#24) May 6, 2026
Brings the troubleshooting entry in line with the structural
explanation now used in installation.md (pnpm's node_modules/.pnpm/
store is the layout the resolver does not yet traverse), so the two
pages describe the same limitation in the same terms.

Refs: LambdaTest#24
@gaurav0107 gaurav0107 marked this pull request as ready for review May 6, 2026 19:12
@siddhant573
Copy link
Copy Markdown
Collaborator

Thanks @gaurav0107 — going to merge this as the stopgap. The docs accurately capture the current failure mode and give users a clear workaround, which is what we need until the v16-runner resolver picks up pnpm's nested node_modules/ layout.

We'll track the actual pnpm support fix under #24 and circle back to update these sections (or remove the "unsupported" framing) once that lands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants