Skip to content
Sign upLog in
← Back to Community

Express Generator Not Working?

Profile icon
lightningrock

I want to create a express app, so I install express in the bash terminal with this: npm install express and then I do this: express -g. But it says that express isn't a command. I find that I need to install express-generator, so I do npm install express-generator and then I try: express -g, but it still doesn't work.

Voters
Profile icon
Devangend
Profile icon
lightningrock
Comments
hotnewtop
Profile icon
Coder100

use npx

npx express -g
Profile icon
lightningrock

that didnt work either :(
image

@Coder100

Profile icon
Coder100

nooo use it to run express bruhh

npx express generate whatever

@lightningrock

Profile icon
lightningrock
Profile icon
adsarebbbad

you can use the template