question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on running getstorybook

See original GitHub issue

Hi, I have a test meteor react todo project which runs fine, and wanted to add storybook to learn it while prototyping some new UI components.

Tried the recommended setup sequence but gets fails on:

G:\Meteor Projects\Meteor 1.4\rubix-meteor-todolist>getstorybook

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

• Detecting project type. ✓ • Adding storybook support to your “Meteor” app. ✓ • Preparing to install NPM dependencies. ✓ • Installing NPM dependencies. ✖

 An error occured while running `npm install`.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
robcaldecottcommented, Nov 30, 2016

The problem is spawnSync, used in lib/helpers.js. If you change the npm command to npm.cmd then it works.

exports.installDeps = function (options) {
  var done = exports.commandLog('Preparing to install dependencies');
  done();
  console.log();

  var result;
  if (options.useYarn) {
    result = spawnSync('yarn', { stdio: 'inherit' });
  } else {
    result = spawnSync('npm.cmd', ['install'], { stdio: 'inherit' });
  }

  done = exports.commandLog('Installing dependencies');
  if (result.status !== 0) {
    done('An error occurred while installing dependencies.');
    process.exit(1);
  }
  done();
};
1reaction
arunodacommented, Sep 6, 2016

We need to see what’s actually breaking here. It’s hard to say without seeing any error info. Anyway, try to use our Slow Start Guide.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on running getstorybook · Issue #430 - GitHub
Hi, I have a test meteor react todo project which runs fine, and wanted to add storybook to learn it while prototyping some...
Read more >
npm run storybook fails on new react project - Stack Overflow
npm i -g getstorybook. getstorybook. npm run storybook. I get the following error: ERROR in ./.storybook/config.js Module build failed: ...
Read more >
getstorybook - npm
Start using getstorybook in your project by running `npm i getstorybook`. There are 3 other projects in the npm registry using getstorybook.
Read more >
CLI options - Storybook
-p , --port [number], Port to run Storybook start-storybook -p 9009 ... Available options: silly , verbose , info (default), warn , error...
Read more >
Storybook for React - Percy Docs
On the line that imports from @storybook/react, add getStorybook and ... This will run Storybook's build-storybook command to create a static site from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found