Rhushikesh
Rhushikesh

Reputation: 3700

npm install express --ejs . not creating folder structure

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. enter image description here

enter image description here I am referring the this article

Upvotes: 0

Views: 1684

Answers (2)

NiallJG
NiallJG

Reputation: 1961

Install express-generator first :

npm install express-generator -g

Then create your app with :

express nameofapp

Upvotes: 0

Kjnokeer
Kjnokeer

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

Related Questions