mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 04:31:06 +08:00
15 lines
811 B
Plaintext
15 lines
811 B
Plaintext
- Add the `--type svelte` flag to the installation command to set up Storybook manually:
|
|
|
|
```shell
|
|
npx storybook init --type svelte
|
|
```
|
|
|
|
- Storybook's CLI provides support for [Yarn](https://yarnpkg.com/), [npm](https://www.npmjs.com/), and [pnpm](https://pnpm.io/) package managers. If you have Yarn installed in your environment but prefer to use another as your default package manager add the `--package-manager` flag to your installation command. For example:
|
|
|
|
```shell
|
|
npx storybook init --package-manager=npm
|
|
```
|
|
|
|
- For issues with Svelte Native Story Format, check the [Svelte Story Format addon repository](https://github.com/storybookjs/addon-svelte-csf) for instructions.
|
|
- For other installation issues, check the [Svelte README](../../app/svelte/README.md) for additional instructions.
|