storybook: [Bug]: Storybook injecting packageManager pnpm 8.1.0 when you run `npm run storybook`
Describe the bug
When you run npm run storybook on a vite project, it is injecting this into the package.json every single time:
"packageManager": "pnpm@8.1.0+sha1.09ebf306075e96037432071992bb00340c263d85"
- This breaks the Chromatic Github Action.
- If I want to use pnpm, I will. Don’t force it on me.
- Version 8.1.0 is bugged with Node 20. You have to use 8.3.1 minimum or pnpm can’t install libraries.
Reproduction link
Reproduction steps
As stated in the description. Make a vite project and npm run storybook and it will inject that line into package.json every time.
Delete the line from package.json, npm run storybook, and it’s back again.
System
Storybook Environment Info:
System:
OS: macOS 14.6.1
CPU: (12) arm64 Apple M2 Pro
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
npm: 10.8.3 - ~/.nvm/versions/node/v20.17.0/bin/npm <----- active
pnpm: 8.1.0 - ~/.nvm/versions/node/v20.17.0/bin/pnpm
Browsers:
Chrome: 128.0.6613.139
Safari: 17.6
npmPackages:
@storybook/addon-essentials: 8.3.1 => 8.3.1
@storybook/addon-interactions: 8.3.1 => 8.3.1
@storybook/addon-links: 8.3.1 => 8.3.1
@storybook/blocks: 8.3.1 => 8.3.1
@storybook/manager-api: 8.3.1 => 8.3.1
@storybook/preview-api: 8.3.1 => 8.3.1
@storybook/react: 8.3.1 => 8.3.1
@storybook/react-vite: 8.3.1 => 8.3.1
@storybook/test: 8.3.1 => 8.3.1
@storybook/theming: 8.3.1 => 8.3.1
@storybook/types: 8.3.1 => 8.3.1
chromatic: 11.10.2 => 11.10.2
eslint-plugin-storybook: 0.8.0 => 0.8.0
storybook: 8.3.1 => 8.3.1
storybook-dark-mode: 4.0.2 => 4.0.2
storybook-react-i18next: 3.1.7 => 3.1.7
Additional context
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 16 (7 by maintainers)
This injection is happening on regular NPM as well. Even worse, it’s setting it to yarn when nom is already set as the engine.