view raw
Hoa Hoa - 9 months ago 48
Node.js Question

How can I create an Express EJS project from the command line?

I have tried

express -e myproject

However this does not work as expected

express --help

  Usage: express [options] [path]

    -s, --sessions           add session support
    -t, --template <engine>  add template <engine> support (jade|ejs). default=jade
    -c, --css <engine>       add stylesheet <engine> support (stylus). default=plain css
    -v, --version            output framework version
    -h, --help               output help information

so, do >express -t ejs [path]