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

npx -p @storybook/cli sb init --type react_native fails because it looks for @storybook/react-native@^5.0.5 but it is not published yet #6266

Closed
Javier-Rotelli opened this issue Mar 26, 2019 · 1 comment

Comments

@Javier-Rotelli
Copy link

Describe the bug
npx -p @storybook/cli sb init --type react_native fails because it looks for @storybook/react-native@^5.0.5 but it is not published yet

To Reproduce
Steps to reproduce the behavior:

  1. Go to a folder containing a react native project.
  2. run npx -p @storybook/cli sb init --type react_native
  3. See error

Expected behavior
It should init storybook correctly

Terminal output

✗ npx -p @storybook/cli sb init --type react_native

npx: installed 404 in 18.529s

WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option.

You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands:

  npm install --save core-js@2    npm install --save core-js@3
  yarn add core-js@2              yarn add core-js@3

[BABEL] Note: The code generator has deoptimised the styling of /Users/javier/.npm/_npx/52701/lib/node_modules/@storybook/cli/node_modules/lodash/lodash.js as it exceeds the max of 500KB.

 sb init - the simplest way to add a storybook to your project.

 • Installing Storybook for user specified project type. ✓
 • Adding storybook support to your "React Native" appsed: no such file or directory: storybook/storybook.js
. ✓
 • Preparing to install dependencies. ✓

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @storybook/react-native@^5.0.5
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'UnboxApp'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/javier/.npm/_logs/2019-03-25T20_01_26_212Z-debug.log

 • Installing dependencies. ✖

     An error occurred while installing dependencies.

System:

  • OS: MacOS
  • Framework: react-native
@shilman
Copy link
Member

shilman commented Mar 26, 2019

Closing as duplicate to #5893

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

No branches or pull requests

2 participants