Repository navigation
Description
Documentation is
- Missing
- Outdated
- Confusing
- Not sure
Explain in Detail
Description
The Vite+ Environment documentation recommends the following command to disable pnpm's automatic runtime management globally:
pnpm config set --global runtimeOnFail ignoreHowever, pnpm rejects this command because runtimeOnFail is not supported in the global config.yaml file.
Error: ERR_PNPM_CONFIG_SET_UNSUPPORTED_YAML_CONFIG_KEY
× The key "runtimeOnFail" isn't supported by the global config.yaml file
help: Try setting them instead to the local pnpm-workspace.yaml fileExpected behavior
The documentation should recommend a configuration method supported by pnpm, or clarify which pnpm versions support the global setting.
References
- Vite+ Environment documentation
- pnpm CLI & Node.js Settings
- docs: clarify pnpm runtime management conflicts #2620
- Inject
PNPM_CONFIG_RUNTIME=falsewhenvp envismanaged#2468
Additional notes
- Verified pnpm version: 12.11.2. The error above was observed when running the documented command with this version.
- AI disclosure: This issue was authored by ChatGPT based on the reporter's findings and instructions.
Your Suggestion for Changes
Replace the unsupported global configuration command with the project-level configuration supported by pnpm:
pnpm config set --location=project runtimeOnFail ignoreAlternatively, document the equivalent configuration in pnpm-workspace.yaml:
runtimeOnFail: ignoreAccording to the pnpm config documentation, --location=global writes to the global config.yaml, whereas --location=project writes to the project's pnpm-workspace.yaml.
Since runtimeOnFail cannot be set in the global config.yaml in pnpm 12.11.2, the documentation should not recommend the global command without specifying a compatible version or a verified alternative.
Additionally, replace the outdated reference to managePackageManagerVersions with pmOnFail for pnpm 11+.
Relevant Page
No response
Reproduction (Optional)
No response
Steps to reproduce (Optional)
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
liangmiQwQ commentedon Oct 15, 2026
Thank you! I'll fix it in #3077
docs(env): recommend project-level pnpm management settings (voidzero…
chore(deps): update rust crates (#3460)
chore(deps): update rust crates (#3541)