Add instructions for installing with PNPM to the Get Started Install section #19030
Unanswered
Mr-LJQ
asked this question in
Documentation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Yesterday, I tried to start using Storybook, after going through the official documentation, I followed the documentation instructions to install, but this installation caused me to spend a whole day. Although the installation instructions only provide how to install NPM and YARN, there is no explicit instruction that PNPM cannot be used, so I use PNPM installation, but this causes some dependency problems.
In order to solve this problem, I spent a lot of time searching for information and trying one by one. The problem was finally solved in the following way.
The reason this is a bad problem is that when the
npx storybook init
goes wrong, I want to be able to manually install the dependencies, but there's no instructions for what to install, so I can just work around it and figure out what packages to install after thenpx storybook init
, Then go to manual installation. There are other problems with this process, such as the lack of documentation fornpx storybook Init
that explains what commands and options it has, which makes me really upset.The essence of the problem is that the documentation says' npx storybook init 'is the easiest way to install it, but when it crashes, you'll find that there's no way to go back from' npx storybook init 'to' PNPM add... `.
Therefore, I feel that in addition to the smart installation method of "npx storybook init", I should add the manual "npm/pnpm add...". Installation method.You should also add a description of the problems that can result from installing with PNPM.
May no one waste their life like I did.
Beta Was this translation helpful? Give feedback.
All reactions