No command line utility for express / node windows 7

I cannot run the express command from the Windows 7 command prompt. The tutorial that I am following ( here ) assumes that I use the command line and invoke an expression to create a skeletal application.

I go to the express module directory in my node_modules area and try to find a batch file or an executable file that can be run from the command line.

I did not find anything, there are no files included in the module that can be run from the command line.

I'm very confused right now.

Does anyone know where this elusive command line utility exists?

+4
source share
3 answers

I found a batch file.

All batch files for modules intended to be called via the command line are in node_modules\.bin

Therefore, make sure that it is a path environment variable.

+1
source

It seems that Jonathan Lonsky was right - the guide is a bit outdated. The last command to use the express generator:

 npm install -g express-generator 

This will still give the same directory structure that is offered in the tutorial. Learn more about the Github Express Page

0
source

You need to install the Express application generator as described in the Express Getting started document. Install it with the following command:

  $ npm install express-generator –g 

After that, you can run the express command from any Windows 7 command prompt.

0
source

All Articles