Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 874
Hoa Avatar asked May 31 '12 13:05

Hoa


1 Answers

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]

like image 129
dmh2000 Avatar answered Oct 14 '22 11:10

dmh2000