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 ProjectsMeteor 1.4rubix-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`.
Hi,
Is there an npm-debug.log file in your project directory? It may have more information on why npm install failed.
no
Can you post the link to the todo list repo
No I can't because it's a paid template: https://wrapbootstrap.com/theme/rubix-reactjs-powered-admin-template-WB09498FH
Cheap, but paid nonetheless. The project was the meteor react todo example they have as a sample and also as a tutorial (different from MDG guide react todo)
Was working fine, added storybook and broke it badly!
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.
May be this is a related issue: https://github.com/kadirahq/react-storybook/issues/423
I tried both guides, same error.
I'd email [email protected] and ask them for a free copy of rubix. They'd probably give you one considering what you do and the reported bug. If they do try it with the example meteor react todo project. That's how I got the error.
I ran into this issue, but it's because my machine was configured to use a Sinopia proxy instead of the global NPM registry directly.
I hope we can close this now.
Don't know, afaik it's still there!
Try this: https://github.com/kadirahq/react-storybook/issues/122#issuecomment-216820405
I am running into this on both my Win7 and Win10 machines, regardless of which repo I try to install to.
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();
};
Looks like it's the same issue #628
I changed it to
result = shell.exec('npm install');
and it works as well!
Just doing npm i after the original failing message
An error occured while running 'npm install'
worked for me.
@alebrozzo could you check the errors on npm.log or similar file in the root of your app.
The problem is still here
Looks like it's the same issue #628
I changed it to Absolute path
spawnSync('C:/Users/Administrator/AppData/Roaming/npm/npm.cmd'
and it works as well!
was getting the above error.. later I tried,
npm i -g @storybook/cli
cd my-react-app
getstorybook
it worked..
changing it to npm.cmd seems to have addressed it for me as well.
@claym it should be solved in v3.x
what version of Storybook do you use?
well, today i installed via npm install --global getstorybook which seems to be 1.7.0
but apparently that's the wrong package to use :D
I was following a tutorial. Seems storybook/cli works!
So, nevermind!
can't get getstorybook to run on a newly minted mac-mini on a hello-storybook app created to follow these commands
npm i -g create-react-app getstorybook
create-react-app hello-react
cd hello-react
getstorybook
everything runs except the getstorybook line and the error i get is:
~bash: getstorybook: command not found
I installed the app with both yarn and npm 5.3.0 but I can't find any trace of a storybook file anywhere
@dcu-sharepoint, the package you should install is @storybook/cli then it enables this getstorybook command for you.
Most helpful comment
The problem is spawnSync, used in lib/helpers.js. If you change the npm command to npm.cmd then it works.