# ./launcher 重建应用程序错误：引导失败，退出码为 234

**URL:** <https://meta.discourse.org/t/launcher-rebuild-app-error-bootstrap-failed-with-exit-code-234/353999>\
**Category:** Support\
**Created:** [2025年二月23日 20:22 UTC](https://meta.discourse.org/t/launcher-rebuild-app-error-bootstrap-failed-with-exit-code-234/353999 "2025-02-23T20:22:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)\
**Post date:** [2025年二月24日 08:16 UTC](https://meta.discourse.org/t/launcher-rebuild-app-error-bootstrap-failed-with-exit-code-234/353999/5 "2025-02-24T08:16:27Z")

</div>

以下是切换到 PNPM 的正确方法，[Discourse 已将 PNPM 作为其包管理器](https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521)，

1. 确保已安装 PNPM：`pnpm --version`
2. 如果未安装，请使用 npm 安装：`npm install -g pnpm`
3. 清理旧依赖项：  
`rm -rf /var/www/discourse/node_modules`  
`rm -rf /var/www/discourse/app/assets/javascripts/*/node_modules`
4. 拉取最新代码：  
`cd /var/discourse`  
`git pull`
5. 重建 Discourse：`./launcher rebuild app`

---

_[View the full topic](https://meta.discourse.org/t/launcher-rebuild-app-error-bootstrap-failed-with-exit-code-234/353999)._
