simon
21 Settembre 2024, 8:46pm
4
Mehmet:
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
Mi stavo chiedendo se il problema fosse correlato al passaggio da yarn a pnpm per la gestione dei pacchetti. I dettagli su tale modifica sono qui: Discourse core is switching to pnpm for JS package management .
Hai aggiunto dei comandi yarn al tuo file app.yml? La sezione “Production” del documento che ho linkato dice che i comandi yarn devono essere cambiati in comandi pnpm.
2 Mi Piace