I am trying to install storybook to my react app and I am getting the following error:
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
Can anyone point me in the right direction as to what this may be?
I did the following:
- created a new React app
- added this line under scripts in the package.json:
"storybook": "start-storybook -p 9001"
- ran
npx -p @storybook/cli sb init