storybook: [Bug]: Error installing storybook in monorepo
Describe the bug
Error installing storybook in monorepo
Node - v18.13.0
NPM - 9.3.1
When running the command:
npx storybook init
or
npx storybook init --builder @storybook/builder-vite --type react --use-npm
this error occurs:

To Reproduce
No response
System
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 25 (8 by maintainers)
Having the same issue I see it was tagged with “has workaround”, I hope the workaround is not “use a no longer manteined version of node” cause I don’t see any
@vanessayuenn, Can we add this to the empathy backlog? I was finally stumbling upon a reproduction (see above). Let’s fix this quickly because initializing Storybook in projects using npm/yarn workspaces is not working, and
workspacesaren’t that uncommon nowadays.I’m removing the
has workaroundlabel since downgrading to Node.js 16, which reached its EOL, isn’t an option anymore.I am getting the same error while using turborepo with npm and nextjs. My dependencies are installing but when I start the dev server I see the following.
node 18.15.0 npm 9.6.1 turborepo 1.8.3 nextjs 13.2.4
getting the same error, following the turborepo guide at https://turbo.build/repo/docs/handbook/tools/storybook, on node 16.19.1