From 5d7de6cec3fc4a407add1a40bdaca508679f90ae Mon Sep 17 00:00:00 2001 From: Dor Kleiman Date: Wed, 4 Jun 2025 13:07:05 +0300 Subject: [PATCH] Fix example package.json script The script for run is supposed to eventually run `node app.js --watch` by running `node --run start` with the `--watch` parameter - but the name of the script was missing resulting in a syntax error. Signed-off-by: Dor Kleiman --- .../command-line/run-nodejs-scripts-from-the-command-line.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/pages/en/learn/command-line/run-nodejs-scripts-from-the-command-line.md b/apps/site/pages/en/learn/command-line/run-nodejs-scripts-from-the-command-line.md index d2a68883b7e8c..67d1723721673 100644 --- a/apps/site/pages/en/learn/command-line/run-nodejs-scripts-from-the-command-line.md +++ b/apps/site/pages/en/learn/command-line/run-nodejs-scripts-from-the-command-line.md @@ -71,7 +71,7 @@ The [`--run`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--run) flag allo "type": "module", "scripts": { "start": "node app.js", - "dev": "node --run -- --watch", + "dev": "node --run start -- --watch", "test": "node --test" } }