diff --git a/docs/getting-started/getting-started.md b/docs/getting-started/getting-started.md index dc6db37173..3ef9d0a089 100644 --- a/docs/getting-started/getting-started.md +++ b/docs/getting-started/getting-started.md @@ -13,7 +13,7 @@ npm install -g @angular/cli **Using `npx`** ```bash -npx create-nx-workspace myworkspace +npx --ignore-existing create-nx-workspace myworkspace ``` **Using `npm init`** diff --git a/docs/guides/react-and-angular.md b/docs/guides/react-and-angular.md index c1929a2e5f..a5651ff9b2 100644 --- a/docs/guides/react-and-angular.md +++ b/docs/guides/react-and-angular.md @@ -11,7 +11,7 @@ To show how Nx does it, let's build two applications (one in Angular, and one in Let's start by creating a new Nx workspace. The easiest way to do this is to use npx. ```bash -npx create-nx-workspace happynrwl --preset=empty +npx --ignore-existing create-nx-workspace happynrwl --preset=empty ``` ## Creating an Angular Application diff --git a/docs/guides/react.md b/docs/guides/react.md index e1647fd4e9..eac848e498 100644 --- a/docs/guides/react.md +++ b/docs/guides/react.md @@ -16,13 +16,13 @@ Nx has first class support for React: you can create React applications and libr Create a new Nx workspace. The easiest way to do it is to use npx. ```bash -npx create-nx-workspace happynrwl --preset=empty +npx --ignore-existing create-nx-workspace happynrwl --preset=empty ``` You can also create a workspace with a React application in place by running: ```bash -npx create-nx-workspace happynrwl --preset=react +npx --ignore-existing create-nx-workspace happynrwl --preset=react ``` ## Generating a React Application diff --git a/docs/tutorial/01-create-application.md b/docs/tutorial/01-create-application.md index ea87ecfa29..967a56e2e9 100644 --- a/docs/tutorial/01-create-application.md +++ b/docs/tutorial/01-create-application.md @@ -7,7 +7,7 @@ In this tutorial you will use Nx to build a full-stack application out of common **Start by creating a new workspace.** ```bash -npx create-nx-workspace myorg +npx --ignore-existing create-nx-workspace myorg ``` When asked about 'preset', select `empty`.