Skip to content

Commit a26d925

Browse files
authored
Update faq.md
1 parent d208fcf commit a26d925

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/faq.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ Yes, but it's a bit clumsy right now.
3434

3535
First, make sure you fetched it: `bazel fetch @pnpm//:*`
3636

37-
Then run `bazel run @nodejs_host//:node $(bazel info output_base)/external/pnpm/package/bin/pnpm.cjs`
37+
Then run `bazel run -- @nodejs_host//:node $(bazel info output_base)/external/pnpm/package/bin/pnpm.cjs`
3838

39-
You can use this recipe to make sure your developers run the exact same pnpm and node versions.
39+
You can use this recipe to make sure your developers run the exact same pnpm and node versions that Bazel does.
40+
41+
Alternatively, if you don't care that the pnpm version matches, you could use a shorter command like `bazel run -- @nodejs_host//:npx_bin pnpm@latest` to just use the latest pnpm version.
4042

4143
## Why can't Bazel fetch an npm package?
4244

0 commit comments

Comments
 (0)