Sruthi Sanigarapu a86531d10d Update document to show storybook initialization using npm.
npx storybook init command is installing storybook using yarn by
default on projects that use npm. This leads to clobbering of package.lock
when storybook addons are installed  using npm. This update will show users
how to initialize storybook using npm.
2022-06-26 23:27:44 -05:00

24 lines
953 B
Plaintext

- 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
```
- Add the `--type ember` flag to the installation command to set up Storybook manually:
```shell
npx sb init --type ember
```
- During the install process, if you get the following warning message:
```shell
The ember generate entity-name command requires an entity name to be specified.
For more details, use ember help.
```
Update the [`@storybook/ember-cli-storybook`](https://www.npmjs.com/package/@storybook/ember-cli-storybook) package to the latest version to fix it.
- For other installation issues, check the [Ember README](../../app/ember/README.md) for additional instructions.