From b30063803020732037e526e73e62abde9d93fd76 Mon Sep 17 00:00:00 2001 From: Azmeer Date: Sat, 21 Mar 2026 16:31:00 +0500 Subject: [PATCH 1/2] docs: update express-generator install version to 5 --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 57dbc367aee..34b53210f10 100644 --- a/Readme.md +++ b/Readme.md @@ -91,7 +91,7 @@ for more information. Install the executable. The executable's major version will match Express's: ```bash -npm install -g express-generator@4 +npm install -g express-generator@5 ``` Create the app: From d1a70ebeb809d0a8d22c009b2b8537834ace0c6f Mon Sep 17 00:00:00 2001 From: Azmeer Date: Sat, 21 Mar 2026 17:15:15 +0500 Subject: [PATCH 2/2] docs: clarify express-generator is still 4.x --- Readme.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 34b53210f10..244f2004bbf 100644 --- a/Readme.md +++ b/Readme.md @@ -88,12 +88,17 @@ for more information. The quickest way to get started with express is to utilize the executable [`express(1)`](https://github.com/expressjs/generator) to generate an application as shown below: - Install the executable. The executable's major version will match Express's: + Install the executable: ```bash -npm install -g express-generator@5 +npm install -g express-generator@4 ``` + > Note: the generator is currently 4.x and scaffolds an Express 4-style + > application. If you want a starter that follows the Express 5 APIs, create + > a new project manually (for example `npm init -y && npm install express`) or + > update the generated app to Express 5 after scaffolding. + Create the app: ```bash