I ran into the same problem on Windows 8.1. The express.cmd is not created, but I found the text file:
C:\Users\you\AppData\Roaming\npm\node_modules\express\Readme.md
It suggests to run this:
npm install -g express-generator@3
Which will download more stuff.
After that you can use express on the windows command prompt. It will be in your path (
C:\Users\you\AppData\Roaming\npm)
Edit:
express-generator@3 is now updated to express-generator@4,
so use this instead,
npm install -g express-generator@4
The answer isn’t complete, because the modules are installed in C:\Users\you\AppData\Roaming\npm directory as stated above, and you cannot always access any module without, 1) linking it to your current project or 2) explicityly defining the NODE_PATH system variable pointing your node to the right place in the system.
First method,
After installing the module (express in our case), you can link it to your current project by going to your current project directory using cmd and executing below command,
npm link express
You will get a message like this if it is successfully linked,
D:\Project\node_modules\express ->
C:\Users\Sufiyan\AppData\Roaming\npm\node_modules\express
(you cannot link directories without running cmd with Administrator privileges)
The second option is to create or update NODE_PATH system variable pointing your node to the right place in the system. Read this for details.
Also read this official Node.js documentation regarding the issue,
http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/