Please set environment variables
Note "D:\soft\nodejs\" This is the author himself installed in the node JS directory on the computer, please modify the
If the installed Express is 4. X will install express-generator otherwise the Express directory is not the bin file directory.
One of the main problems is that C:\USERS\XXXXX\APPDATA\ROAMING\NPM does not have express.sh or express.bat files, and if so, will C:\Users\xxxxx\AppData\Roaming\ NPM; Add to the environment variable to be able, notice to reopen the command window OH.
Reference:
First, the user environment variable parameters:
PATH =d:\soft\nodejs\;D: \soft\nodejs\node_modules\express; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;
Second, the system environment variable parameter
path=d:\soft\nodejs;d:\soft\nodejs\node_modules\express; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;
Node_path=d:\soft\nodejs\node_modules; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;
Restart your computer when you have set it up. will be effective.