mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
16 lines
379 B
Plaintext
16 lines
379 B
Plaintext
Use the Storybook CLI to install it in a single command. Run this inside your _existing project’s_ root directory:
|
||
|
||
- With npm:
|
||
|
||
```shell
|
||
npx storybook init --type html
|
||
```
|
||
|
||
- With pnpm:
|
||
|
||
```shell
|
||
pnpm dlx storybook init --type html
|
||
```
|
||
|
||
If you run into issues with the installation, check the [Troubleshooting section](#troubleshooting) below for guidance on how to solve it.
|