From f166b6d8f6aecdece1f3471a97495adb80ca4034 Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Mon, 15 Jul 2019 15:30:58 +0530 Subject: [PATCH] docs: add note about current working directory for cli projects (#31507) Fixes #29878 PR Close #31507 --- aio/content/cli/index.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/aio/content/cli/index.md b/aio/content/cli/index.md index 6234b44499..e258fb1210 100644 --- a/aio/content/cli/index.md +++ b/aio/content/cli/index.md @@ -36,6 +36,14 @@ ng serve In your browser, open http://localhost:4200/ to see the new app run. When you use the [ng serve](cli/serve) command to build an app and serve it locally, the server automatically rebuilds the app and reloads the page when you change any of the source files. +
+ + When you run `ng new my-first-project` a new folder, named `my-first-project`, will be created in the current working directory. Since you wont to be able to create files inside that folder, make sure you have sufficient rights in the current working directory before running the command. + + If the current working directory is not the right place for your project, you can change to a more appropriate directory by running `cd ` first. + +
+ ## Workspaces and project files The [ng new](cli/new) command creates an *Angular workspace* folder and generates a new app skeleton. @@ -74,7 +82,7 @@ Command syntax is shown as follows: * Option names are prefixed with a double dash (--). Option aliases are prefixed with a single dash (-). Arguments are not prefixed. - For example: + For example: ng build my-app -c production @@ -105,5 +113,5 @@ Schematic options are supplied to the command in the same format as immediate co ### Building with Bazel -Optionally, you can configure the Angular CLI to use [Bazel](https://docs.bazel.build) as the build tool. For more information, see [Building with Bazel](guide/bazel). +Optionally, you can configure the Angular CLI to use [Bazel](https://docs.bazel.build) as the build tool. For more information, see [Building with Bazel](guide/bazel).