任何可能的解决方案来修复运行命令时的以下错误
npx -p @storybook/cli sb init -f
• Preparing to install dependencies. ✓
npm WARN deprecated [email protected]: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @storybook/react-native@^5.0.6
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 'MySampleApp'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/atif/.npm/_logs/2019-04-04T10_51_13_555Z-debug.log
• Installing dependencies. ✖
你的问题是@storybook/react-native@^^5.0.6
,(只有5.0.0和5.1.0)。
也许版本5.0.6已被删除或从未创建过。
我建议安装另一个版本@storybook/react-native
,如果@storybook/react-native
需要其他软件包,则向该模块的作者创建一个问题。