Skip to content

Commit 05928c7

Browse files
authored
Merge pull request #85 from CartoDB/powershell-react
Add note when using PowerShell with create-react-app
2 parents 0f44462 + 1fdcf83 commit 05928c7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

app/content/react/guides/getting-started.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ cd my-app
1818
yarn start
1919
```
2020

21+
{{% bannerNote title="note" %}}
22+
In Windows environments, when using PowerShell as the shell (including the integrated terminal in Visual Studio Code), we need to wrap the `template_name` parameter in single quotes when selecting the skeleton template:
23+
24+
```shell
25+
npx create-react-app my-app --template '@carto'
26+
```
27+
{{%/ bannerNote %}}
28+
2129
A full [Sample Application](#sample-application) with the most common functionality is available at https://sample-app-react.carto.com. If you want to create a new application based on the sample app template, just type the following:
2230

2331
```bash

app/content/react/overview.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ npx create-react-app [application_name] --template [template_name]
7676
- `application_name` is the name of the folder that will be created for your application
7777
- `template_name` is the name of the template to use (`@carto` for the skeleton template or `@carto/sample-app` for the sample app template)
7878

79+
{{% bannerNote title="note" %}}
80+
In Windows environments, when using PowerShell as the shell (including the integrated terminal in Visual Studio Code), we need to wrap the `template_name` parameter in single quotes when selecting the skeleton template:
81+
82+
```shell
83+
npx create-react-app my-app --template '@carto'
84+
```
85+
{{%/ bannerNote %}}
86+
7987
### Library
8088

8189
In addition to the Create React App templates, we have created a library to:

0 commit comments

Comments
 (0)