Reputation: 3700
I am trying to create node js template using express --ejs .
I have create folder in "C:\MEAN_Stack"
then open power shell as admin
run command npm install express-generator -g
then go to my app folder
then run the command npm install express --ejs . but this command just create the node_modules folder not other folder.
I am referring the this article
Upvotes: 0
Views: 1684
Reputation: 1961
Install express-generator first :
npm install express-generator -g
Then create your app with :
express nameofapp
Upvotes: 0
Reputation: 97
When you want to create a project scaffolding with express, you need to execute:
express --ejs .
npm
is used to install the express generator (and after to install dependencies with npm install
).
Upvotes: 1