Akiq2016/blog

angular-notes

Opened this issue · 3 comments

angular-notes

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

in a higher level folder, and write command like:

ng new myAwesomeApp --directory existing_folder_name

I have already a nodeJS project which name is fitness. I want to add the angular project inside of fitness folder . when go to upper level and run .

ng new website --directory fitness

ERROR! fitness/README.md already exists.
ERROR! fitness/package.json already exists.
ERROR! fitness/.gitignore already exists.
The Schematic workflow failed. See above

What I want is to add app angular package inside fitness/package.json, same with other two existing files.

@nimatullah I think you should not generate new ng project in this path. don't put different things together. angular/angular-cli#2818 (comment) (that's said you are already in an npm project.)

and some other related issue: angular/angular-cli#9966