Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating new angular project in specified location

I am new to angular 2 and I am trying to create a new project in E drive. I am using node.js command prompt for this.

When I just run ng new myapp , it automaticlaly creates project in c drive but I wan to create the same in E:drive under folder "angular4"

I am trying below but it is not working. could you please correct me

This path shows up when we open command prompt

C:\Users\User1>

and to create new project in E: drive under angular 4 , I write below which is not working

C:\Users\User1>cd\ E:Angular4 ng new myapp
like image 361
Sweetie Avatar asked May 03 '17 10:05

Sweetie


1 Answers

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

ng new myapp

EDIT: Or you can concatenate the commands

 E: & cd Angular4 & ng new myapp

EDIT: For Windows PowerShell, concatenate all these commands using the semicolon (;) operator, as:-

E:; cd Angular4; ng new myapp
like image 60
mastermind Avatar answered Nov 12 '22 04:11

mastermind