我正在尝试将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
有人可以向我指出正确的方向吗?
我做了以下事情:
"storybook": "start-storybook -p 9001"
npx -p @storybook/cli sb init