Skip to content

Commit 71dbef5

Browse files
Sync cli docs (#1198)
sync cli docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent abb2077 commit 71dbef5

File tree

1 file changed

+24
-0
lines changed
  • apps/svelte.dev/content/docs/cli/10-introduction

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
NOTE: do not edit this file, it is generated in apps/svelte.dev/scripts/sync-docs/index.ts
3+
title: Frequently asked questions
4+
---
5+
6+
## How do I run the `sv` CLI?
7+
8+
Running `sv` looks slightly different for each package manager. Here is a list of the most common commands:
9+
10+
- **npm** : `npx sv create`
11+
- **pnpm** : `pnpx sv create` or `pnpm dlx sv create`
12+
- **Bun** : `bunx sv create`
13+
- **Deno** : `deno run npm:sv create`
14+
- **Yarn** : `yarn dlx sv create`
15+
16+
## `npx sv` is not working
17+
18+
Some package managers prefer to run locally installed tools instead of downloading and executing packages from the registry. This issue mostly occurs with `npm` and `yarn`. This usually results in an error message or looks like the command you were trying to execute did not do anything.
19+
20+
Here is a list of issues with possible solutions that users have encountered in the past:
21+
22+
- [`npx sv` create does nothing](https://github.com/sveltejs/cli/issues/472)
23+
- [`sv` command name collides with `runit`](https://github.com/sveltejs/cli/issues/259)
24+
- [`sv` in windows powershell conflicts with `Set-Variable`](https://github.com/sveltejs/cli/issues/317)

0 commit comments

Comments
 (0)