Hoa Hoa - 4 months ago 16
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
express --help

  Usage: express [options] [path]

  Options:
    -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]

Comments