在运行命令时解决以下错误的所有解决方案
npx -p @storybook/cli sb init -f
• Preparing to install dependencies. ✓
npm WARN deprecated core-js@1.2.7: 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. ✖
答案 0 :(得分:0)
您的问题是@storybook/react-native@^^5.0.6
,(仅5.0.0和5.1.0)。
也许版本5.0.6已被删除或从未创建。
我的建议是安装另一个版本@storybook/react-native
,如果@storybook/react-native
被其他软件包要求,请为该模块的作者创建一个问题。