Create new angular project at specified location

I am new to angular 2 and I am trying to create a new project on disk E. I am using the node.js command line for this.

When I just start a new myapp it automatically creates a project in c, but I want to create the same on the E: drive in the "angular4" folder

I try but it doesn't work. could you please fix me.

This path appears when you open command prompt

C: \ Users \ User1>

and create a new project on drive E: with angular 4, i write below which doesn't work

C:\Users\User1>cd\ E:Angular4 ng new myapp

      

+3


source to share


3 answers


First go to drive E, then change folder (cd Angular4) then run

ng new myapp

      



EDIT: Or you can combine the commands

 E: cd Angular4 & ng new myapp

      

+2


source


  • Open a command prompt.
  • A type E:

  • A type cd Angular4

  • Run ng new myapp



+1


source


You can use angular cli for this purpose. Steps:

  • First drive goto E, enter E:

  • mkdir Angular4

  • globally install angular cli using the following command: npm install -g @angular/cli

  • Build a project and run it using: ng new PROJECT_NAME cd PROJECT_NAME ng serve

+1


source







All Articles