Hoa Hoa - 1 year ago 105
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

Answer Source
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]

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download