Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while installing dependencies #728

Closed
kaytrance opened this issue Mar 21, 2017 · 8 comments
Closed

An error occurred while installing dependencies #728

kaytrance opened this issue Mar 21, 2017 · 8 comments

Comments

@kaytrance
Copy link

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?

@boyhagemann
Copy link

boyhagemann commented Mar 24, 2017

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...

@usulpro
Copy link
Member

usulpro commented Mar 24, 2017

@kaytrance @boyhagemann
#628 (comment)

@oniseijin
Copy link

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.

@boyhagemann
Copy link

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

@ndelangen
Copy link
Member

Thank for the help @oniseijin !

@kuzzmi
Copy link

kuzzmi commented May 13, 2017

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 fsevents@1.1.1: 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.

@veerjainATgmail
Copy link

was getting the above error.. later I tried,

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

it worked..

@Karaca7
Copy link

Karaca7 commented Oct 24, 2022

I was getting the same error on storybook, I was trying to install with pnpm instead I deleted node_modules and package-lock.json file. I installed all dependecie with npm and then I solved the problem by install npx storybook init

  1. rm -rf node_modules
  2. rm package-lock.json
  3. npm install
  4. npx storybook init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants