Reactjs 安装了storybook,但不会安装。错误表示npm存在问题

Reactjs 安装了storybook,但不会安装。错误表示npm存在问题,reactjs,npm,yarnpkg,storybook,Reactjs,Npm,Yarnpkg,Storybook,我正在尝试将storybook安装到我的react应用程序中,出现以下错误: npx -p @storybook/cli sb init Unhandled rejection Error: EACCES: permission denied, open '/Users/angelainniss/.npm/_cacache/index-v5/33/e5/eafd5bb0479b018922b7ac494f7089e5941f5d3050e7b4f78e2cb97358c7' npm ERR!

我正在尝试将storybook安装到我的react应用程序中,出现以下错误:

npx -p @storybook/cli sb init
Unhandled rejection Error: EACCES: permission denied, open '/Users/angelainniss/.npm/_cacache/index-v5/33/e5/eafd5bb0479b018922b7ac494f7089e5941f5d3050e7b4f78e2cb97358c7'

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/myname/.npm/_logs/2020-10-15T15_39_36_166Z-debug.log
Install for @storybook/cli@latest failed with code 1
npx-p@storybook/cli sb init
未处理的拒绝错误:EACCES:permission denied,open'/Users/angelainniss/.npm/_cacache/index-v5/33/e5/eafd5bb0479b018922b7ac494f7089e5941f5d3050e7b4f78e2cb97358c7'
npm错误!我从没打过电话!
npm错误!这是npm本身的一个错误。请通过以下地址报告此错误:
npm错误!
npm错误!此运行的完整日志可在以下位置找到:
npm错误/Users/myname/.npm/_logs/2020-10-15T15_39_36_166Z-debug.log
为@storybook安装/cli@latest失败,代码为1
有人能给我指出正确的方向吗

我做了以下工作:

  • 创建了一个新的React应用程序
  • 在package.json的脚本下添加了这一行:
    “故事书”:“开始故事书-p 9001”
  • ran
    npx-p@storybook/cli sb init

  • 非常直接的错误,并且已经找到了解决方案也非常简单:你几乎可以肯定我找到了我做过的搜索没有出现任何问题,道具需要搜索得更好,谢谢你为我指明了正确的方向