npm install -g express-generator
NOTE: If don’t installed globally then follow the following steps to add on your PATH.
Run
npm bin -g
To see where npm installs it’s global binaries. Then add that directory to your PATH.
SET PATH=%PATH%;[new directory]
And add it permanently using the way that you should on your system.