angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Provide a way to generate a new project in an existing directory

Open frosiere opened this issue 9 years ago • 25 comments

The current implementation of ng new does not allow creating a new project in an existing directory.

It would be interesting to have an option to generate the project in the current directory without removing everything.

frosiere avatar Mar 15 '17 10:03 frosiere

ng new app_name --directory=./ works for me with below configuration.

Angular CLI: 7.3.4
Node: 10.15.0
OS: darwin x64
Angular: 7.2.7

Napster2210 avatar Mar 04 '19 18:03 Napster2210

Did not work for me until I updated Node after seeing the version posted by @Napster2210. --directory . works after node --version reports v11.11.0.

flipdoubt avatar Mar 09 '19 15:03 flipdoubt

cli 7.3.3 you can use ng new --directory . for create in current directory

vanzinvestor avatar Jul 16 '19 08:07 vanzinvestor

ng new --directory . works with the configuration below:

Angular CLI: 8.1.3
Node: 10.15.3
OS: darwin x64
Angular: 8.1.3

DanielChuDC avatar Sep 01 '19 13:09 DanielChuDC

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.