Storybook: An error occurred while installing dependencies

Created on 21 Mar 2017  Â·  7Comments  Â·  Source: storybookjs/storybook

I am following the guide, but I am stuck on this error:
````
getstorybook - the simplest way to add a storybook to your project.

• Detecting project type. ✓
• Adding storybook support to your "React" app. ✓
• Preparing to install dependencies. ✓

• Installing dependencies. ✖

 An error occurred while installing dependencies.

````

I have node 6.9.2 and npm 3.10.8 installed and working properly. What may be the reason then?

Most helpful comment

was getting the above error.. later I tried,

npm i -g @storybook/cli
cd my-react-app
getstorybook

it worked..

All 7 comments

Have the same issue! I am on windows with node 6.9.1 and npm 3.10.8. I tried to install it in an existing create-react-app application...

You get this if you have any internal package issue. I had the same, and it was due to a proxy registry that could not handle @kadira group for some reason. Run getstorybook first, and then run npm install, and you might get more specific error.

Thanks, that helped and got it working. Thanks guys!

Thank for the help @oniseijin !

I've just installed getstorybook and have the same issue. No proxies, nothing odd in my setup.

> npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

> getstorybook -f

 getstorybook - the simplest way to add a storybook to your project.

 • Detecting project type. ✓
 • Adding storybook support to your "Webpack React" app. ✓
 • Preparing to install dependencies. ✓


 • Installing dependencies. ✖

     An error occurred while installing dependencies.

was getting the above error.. later I tried,

npm i -g @storybook/cli
cd my-react-app
getstorybook

it worked..

Was this page helpful?
0 / 5 - 0 ratings