./launcher rebuild app error: bootstrap failed with exit code 234

Here’s the correct way to switch to PNPM as Discourse has transitioned to PNPM as its package manager,

  1. Ensure PNPM is installed: pnpm --version
  2. If it’s not installed, install it using npm: npm install -g pnpm
  3. Clean up old dependencies:
    rm -rf /var/www/discourse/node_modules
    rm -rf /var/www/discourse/app/assets/javascripts/*/node_modules
  4. Pull the lastest code:
    cd /var/discourse
    git pull
  5. Rebuild Discourse: ./launcher rebuild app
1 Like