Frontend/React
pnpm peer dependencies auto-install
rachel_13
2023. 3. 2. 11:14
WARN Issues with peer dependencies found
.
└─┬ sb 6.5.16
└─┬ @storybook/cli 6.5.16
└─┬ @storybook/core-common 6.5.16
├── ✕ missing peer typescript@"*"
├── ✕ missing peer react@"^16.8.0 || ^17.0.0 || ^18.0.0"
├── ✕ missing peer react-dom@"^16.8.0 || ^17.0.0 || ^18.0.0"
└─┬ fork-ts-checker-webpack-plugin 6.5.2
└── ✕ missing peer typescript@">= 2.7"
Peer dependencies that should be installed:
react-dom@"^16.8.0 || ^17.0.0 || ^18.0.0" react@"^16.8.0 || ^17.0.0 || ^18.0.0" typescript@>=2.7.0
storybook init - the simplest way to add a Storybook to your project.
• Detecting project type. ✓
• Adding Storybook support to your "React" app
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
npm ERR! Cannot read properties of null (reading 'matches')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PBR\AppData\Local\npm-cache\_logs\2023-03-02T02_09_47_689Z-debug-0.log
An error occurred while installing dependencies.
ERROR Command failed with exit code 1: sb init --builder @storybook/builder-vite
pnpm: Command failed with exit code 1: sb init --builder @storybook/builder-vite
peer dependency 설정
pnpm config set auto-install-peers true
https://stackoverflow.com/questions/72468635/pnpm-peer-dependencies-auto-install