# 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:** 7

<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: [2024年九月4日 08:30 UTC](https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521/7 "2024-09-04T08:30:45Z")

</div>

好资源，谢谢 @TonyG

值得注意的是——那里没有一个“配置说明”是 Discourse 所必需的。不确定为什么他们需要它……也许因为它是一个基于 Windows 的应用程序？

另外，他们关于“在现有项目中，只需删除‘node\_modules’文件夹”的说明在 Discourse 中会自动处理 [通过这个脚本](https://github.com/discourse/discourse/blob/a2f625a0ef110acc35c1bbd7022f4e61ec60d7e8/.pnpmfile.cjs#L5-L13) 🕶

所以对我们来说，它确实应该很简单：

```plaintext
npm install -g pnpm
pnpm install

```

---

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