mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
# Conflicts: # addons/storyshots/storyshots-puppeteer/package.json # addons/storysource/package.json # examples/official-storybook/stories/addon-a11y/highlight.stories.js # lib/api/src/lib/stories.ts # lib/api/src/tests/stories.test.ts # lib/core-server/src/build-static.ts # lib/core-server/src/utils/StoryIndexGenerator.ts # lib/manager-webpack4/src/presets/manager-preset.ts # lib/telemetry/src/get-monorepo-type.ts # yarn.lock
14 lines
768 B
Plaintext
14 lines
768 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 both [Yarn](https://yarnpkg.com/) and [npm](https://www.npmjs.com/) package managers. If you have Yarn installed in your environment but prefer to use npm as your default package manager add the `--use-npm` flag to your installation command. For example:
|
|
|
|
```shell
|
|
npx storybook init --use-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. |