Yes, just use path ./node_modules/express-generator/bin/express-cli.js

Answer from ponury-kostek on Stack Overflow
🌐
npm
npmjs.com › package › express-generator
express-generator - npm
$ npm install -g express-generator · The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below: Create the app: $ express --view=hbs /tmp/foo && cd /tmp/foo ·
      » npm install express-generator
    
Published   May 03, 2019
Version   4.16.1
Author   TJ Holowaychuk
🌐
Express.js
expressjs.com › en › starter › generator.html
Express application generator
Use the application generator tool, express-generator, to quickly create an application skeleton. You can run the application generator with the npx command (available in Node.js 8.2.0). ... For earlier Node versions, install the application generator as a global npm package and then launch it:
🌐
GitHub
github.com › expressjs › generator
GitHub - expressjs/generator: Express' application generator
$ npm install -g express-generator · You can also run the application generator with the npx command (available since Node.js 8.2.0). $ npx express-generator · The quickest way to get started with express is to utilize the executable express(1) ...
Starred by 1.9K users
Forked by 552 users
Languages   JavaScript 94.5% | EJS 2.4% | Pug 0.8% | Twig 0.7% | Handlebars 0.4% | HTML 0.3%
🌐
GeeksforGeeks
geeksforgeeks.org › node.js › what-is-express-generator
What is Express Generator ? - GeeksforGeeks
July 23, 2025 - It generates express Applications in one go using only one command. The generated site has a modular structure that we can modify according to our needs for our web application. The generated file structure is easy to understand. We can also configure options while creating our site like which type of view we want to use (For example, ejs, pug, and handlebars). To install this tool on your local machine globally (you can use it anywhere on your Machine), run the below command on your command Line/terminal:
🌐
SitePoint
sitepoint.com › blog › javascript › create new express.js apps in minutes with express generator
Create New Express.js Apps in Minutes with Express Generator
November 13, 2024 - We cover installing Node using a version manager in our quick tip, “Install Multiple Versions of Node.js Using nvm”. Starting a new project with the Express generator is as simple as running a few commands:
Top answer
1 of 3
10

My understanding is:

  • The express package is the framework that exposes functionalities you can use in your code
  • The express-generator package a utility that provides a command-line tool you can use to scaffold your project - ie create boilerplate folder structure, files and code.

As part of the boiler plate files is a package.json file defining the dependencies for your project - ie npm packages that you will need for your project. The express package is listed there.

Knowing the npm install instruction (run with current working directory set to project folder containing the package.json) will "install" all dependencies listed in package.json into your project folder to make them available to your application, it would be sufficient to do:

  • npm install express-generator -g
  • npm install
2 of 3
2

This answer refers to 'express' v4 on Windows. I don't know what the behavior was with express 3 or less.

0) open a cmd prompt as administrator

1) install express-generator globally;

npm install -g express-generator

2) generate the boilerplate files in your chosen directory, for example

express myApp

3) cd to the myApp folder, where you will find the package.json (+ your main app.js file, + other folders)

4) Finally install 'express' local to your app folder (+ any other dependencies as defined in package.json)

npm install

Notes: the express you are installing in step 4) refers to the set of javascript files which form part of the express web framework, to be used and referenced by your own app; the express referred to in step 2) is actually the express-generator cmd line which you installed globally in step 1).

As for my supplementary question, npm init is used to create a package.json file where you respond to prompts, npm init -y creates the package.json automatically with default values, in either case it is not related to express at all.

If you want to build your project from scratch without boilerplate files / folders, first npm init, then npm install --save express, this installs express locally to your app, the --save option adds express as a dependency in your package.json.

Bottom line, to use the express web framework, you don't have to install express-generator, but you must install express. And if you work on, say, 3 apps which use express, the easiest thing to do is to install express 3 times locally to each app.

🌐
Skillsoft
skillsoft.com › home › installation, express-generator, & api
Installation, Express-generator, & API - Express 4.13.3 - INTERMEDIATE - Skillsoft
In this video, find out how to install and use the express-generator to create a default Express web application.
Find elsewhere
🌐
npm
npmjs.com › package › generator-express
generator-express - npm
To get going: Make sure you have yo installed: npm install -g yo · Install the generator locally: npm install generator-express · Run: yo express, select MVC and select your database of choice.
      » npm install generator-express
    
Published   Jun 12, 2019
Version   2.17.2
Author   petecoop
🌐
Kinsta®
kinsta.com › home › resource center › blog › javascript frameworks › how to install express on windows, macos, and linux
How To Install Express on Windows, macOS, and Linux - Kinsta®
October 1, 2025 - This command will install Express in your application directory. It also adds the dependency to package.json so you can easily reinstall if necessary. Express Generator is a CLI tool that helps you quickly generate the scaffolding for an Express application.
🌐
GitHub
github.com › petecoop › generator-express
GitHub - petecoop/generator-express: An express generator for Yeoman, based on the express command line tool.
To get going: Make sure you have yo installed: npm install -g yo · Install the generator locally: npm install generator-express · Run: yo express, select MVC and select your database of choice.
Starred by 814 users
Forked by 131 users
Languages   JavaScript 80.6% | CoffeeScript 15.1% | Marko 1.0% | EJS 0.9% | Handlebars 0.8% | Pug 0.8%
🌐
freeCodeCamp
forum.freecodecamp.org › t › using-express-generator › 415508
Using express-generator - The freeCodeCamp Forum
August 15, 2020 - I’m reading the Node-Express docs on MDN and when I’m trying to follow the “Installing the express application generator” section, I’m getting an integrity verification failure… npm ERR! code EINTEGRITY npm ERR! errno E…
🌐
npm
npmjs.com › package › express-app-generator
express-app-generator - npm
npm install express-app-generator --save · To make node app with express framework, many things are needed i.e - Environment where the server is made. Generic Responses are set, in which form their is need.
      » npm install express-app-generator
    
Published   Nov 18, 2020
Version   1.0.6
Author   Hardeep Singh
🌐
npm
npmjs.com › package › express-generator-typescript
express-generator-typescript - npm
If you want an example of how to do authentication in expressjs with json-web-tokens you can refer to this sample project here. $ Just use 'npx' Or $ npm install -g express-generator-typescript
      » npm install express-generator-typescript
    
Published   Nov 10, 2025
Version   2.7.4
Author   sean maxwell
🌐
SAP
developers.sap.com › tutorials › basic-nodejs-application-create.html
Create a Basic Node.js Application with Express Generator | SAP Tutorials
Option 2: Run the application generator to create application skeleton with command npm and express, by this way, packages will be saved locally as well. ... Package express is installed together.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn › Server-side › Express_Nodejs › skeleton_website
Express Tutorial Part 2: Creating a skeleton website - Learn web ...
As a quick reminder, you install the generator tool site-wide using the npm package manager, as shown: ... The generator has a number of options, which you can view on the command line using the --help (or -h) command: ... > express --help Usage: express [options] [dir] Options: --version output ...