mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 05:41:07 +08:00
16 lines
355 B
Plaintext
16 lines
355 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
|
||
```
|
||
|
||
- With pnpm:
|
||
|
||
```shell
|
||
pnpm dlx storybook init
|
||
```
|
||
|
||
If you run into issues with the installation, check the [Troubleshooting section](#troubleshooting) below for guidance on how to solve it.
|