# Discourseを起動できません

**URL:** https://meta.discourse.org/t/i-cant-start-discourse/327505
**Category:** Self-hosting
**Created:** [2024 年 9 月 21 日午前 9:52 UTC](https://meta.discourse.org/t/i-cant-start-discourse/327505 "2024-09-21T09:52:30Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2024 年 9 月 21 日午後 8:46 UTC](https://meta.discourse.org/t/i-cant-start-discourse/327505/4 "2024-09-21T20:46:53Z")

</div>

> [@NogayHan](#):
>
> ```plaintext
> Pups::ExecError: cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean' failed with return #<Process::Status: pid 301 exit 1>
> Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
> exec failed with the params {"cd"=>"$home", "hook"=>"yarn", "cmd"=>["if [\"$version\" != \"tests-passed\"]; then\n rm -rf app/assets/javascripts/node_modules\nfi", "su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'"]}
> bootstrap failed with exit code 1
> 
> ```

パッケージ管理が yarn から pnpm に変更されたことが原因ではないかと考えています。その変更に関する詳細は次のとおりです。[https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521。](https://meta.discourse.org/t/discourse-core-is-switching-to-pnpm-for-js-package-management/324521%E3%80%82)

`app.yml` ファイルに `yarn` コマンドを追加しましたか？私がリンクしたドキュメントの「本番環境」セクションには、`yarn` コマンドを `pnpm` コマンドに変更する必要があると記載されています。

---

_[View the full topic](https://meta.discourse.org/t/i-cant-start-discourse/327505)._
