Skip to content

Commit a1ffaff

Browse files
authored
Docs: Added quotes in cli for Windows PowerShell compatibility (#986)
* Added cli for Windows Powershell Thanks for adding Windows support! 🎉🍻 In Windows Powershell, the `@` character is reserved, and the current command will only run `npm init`. * Use quotes around @ prefixes Instead of special casing PowerShell, surrounding @observablehq with quotes works for all shells.
1 parent b36b4ad commit a1ffaff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ Framework includes a helper script (`observable create`) for creating new projec
9090

9191
To create a new project with npm, run:
9292

93-
<pre data-copy>npm init @observablehq</pre>
93+
<pre data-copy>npm init "@observablehq"</pre>
9494

9595
If you prefer Yarn, run:
9696

97-
<pre data-copy>yarn create @observablehq</pre>
97+
<pre data-copy>yarn create "@observablehq"</pre>
9898

9999
You can run the above command anywhere, but you may want to `cd` to your `~/Development` directory first (or wherever you do local development).
100100

0 commit comments

Comments
 (0)