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%
🌐
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:
🌐
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.
🌐
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:
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.

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
🌐
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…
🌐
Stack Overflow
stackoverflow.com › questions › tagged › express-generator
Newest 'express-generator' Questions - Stack Overflow
Trying to follow the Express getting started tutorial. I generated an app and ran npm install following the provided instructions. > npx express-generator --view=pug myapp > npm install npm ERR!
🌐
YouTube
youtube.com › watch
Express JS Tutorial #13 - Express Generator | Expressjs Tutorial For Beginners - YouTube
Learn express js tutorial for beginners, node express js tutorial, express js tutorial, express node js tutorial, express js tutorial 2020, express node js m...
Published   October 19, 2020
🌐
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.
🌐
YouTube
youtube.com › watch
Getting Started With Express Framework | Express App Generator | Node.js Tutorial for Beginners #6 - YouTube
Sign up for 10,000 free minutes: https://bit.ly/3s7jDdaFind out more about ZEGOCLOUD: https://bit.ly/3TfpOHMGuides to build live streaming app: https://bit.l...
Published   November 3, 2022
🌐
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.
🌐
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
🌐
Medium
medium.com › swlh › build-your-first-api-with-express-generator-sequelize-and-cli-2f7494cc517b
Build Your First API With Express Generator, Sequelize and CLI | by Christiana Okere | The Startup | Medium
December 2, 2020 - We use the command ```npm install — save sequelize. This adds sequelize to your list of dependencies in the package.json file. “dependencies”: { “cookie-parser”: “~1.4.4”, “debug”: “~2.6.9”, “express”: “~4.16.1”, ...
🌐
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%