diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md
index 98858f5c3b..c742ce6fa8 100644
--- a/docs/src/intro-js.md
+++ b/docs/src/intro-js.md
@@ -101,7 +101,7 @@ npx playwright test
```bash
-yarn run playwright test
+yarn playwright test
```
@@ -109,7 +109,7 @@ yarn run playwright test
```bash
-pnpm playwright test
+pnpm exec playwright test
```
@@ -142,7 +142,7 @@ npx playwright show-report
```bash
-yarn run playwright show-report
+yarn playwright show-report
```
@@ -150,7 +150,7 @@ yarn run playwright show-report
```bash
-pnpm playwright show-report
+pnpm exec playwright show-report
```
@@ -183,7 +183,7 @@ npx playwright test --ui
```bash
-yarn run playwright test --ui
+yarn playwright test --ui
```
@@ -191,7 +191,7 @@ yarn run playwright test --ui
```bash
-pnpm playwright test --ui
+pnpm exec playwright test --ui
```
@@ -228,9 +228,9 @@ npx playwright install --with-deps
```bash
-yarn add -D @playwright/test@latest
+yarn add --dev @playwright/test@latest
# Also download new browser binaries and their dependencies:
-yarn run playwright install --with-deps
+yarn playwright install --with-deps
```
@@ -238,9 +238,9 @@ yarn run playwright install --with-deps
```bash
-pnpm install -D @playwright/test@latest
+pnpm install --save-dev @playwright/test@latest
# Also download new browser binaries and their dependencies:
-pnpm playwright install --with-deps
+pnpm exec playwright install --with-deps
```
@@ -269,7 +269,7 @@ npx playwright --version
```bash
-yarn run playwright --version
+yarn playwright --version
```
@@ -277,7 +277,7 @@ yarn run playwright --version
```bash
-pnpm playwright --version
+pnpm exec playwright --version
```