# Discourse core 正在切换到 pnpm 进行 JS 包管理

**URL:** <https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521>\
**Category:** Development\
**Tags:** dev-news\
**Created:** [2024年九月3日 09:26 UTC](https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521 "2024-09-03T09:26:41Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2025年二月13日 18:55 UTC](https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521/26 "2025-02-13T18:55:33Z")

</div>

10.0 版的 lockfile 格式已更改，GitHub 的 dependabot 尚不支持，因此我们将 core 和所有主题/插件固定到 9.x 版本。

理论上，它应该会自动切换回 9.x 版本……但似乎并非对所有人都有效 😢

运行 `pnpm self-update 9` 能使其恢复正常吗？

---

_[View the full topic](https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521)._
