Error in bench init Frappe on Ubuntu 22.04.3

This is my first time installing Frappe.

bench version shows 5.17

bench --version
5.17.0

Getting the following error trying to run bench init frappe-bench

ERROR There were some problems during build

Below is the output. Can anyone figure out what is wrong?

Found existing apps updating states…
WARN: restart failed: Couldn’t find supervisorctl in PATH
$ bench build
Assets for Commit 112836dcd784043b0791a3c71a433957c79f5a0f don’t exist
:heavy_check_mark: Application Assets Linked

yarn run v1.22.19
$ node esbuild --production --run-build-command
ERROR There were some problems during build

Error: The service was stopped
at /home/al/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1356:25
at /home/al/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:678:9
at Socket.afterClose (/home/al/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:656:7)
at Socket.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Terminated
error Command failed with exit code 143.
info Visit yarn run | Yarn for documentation about this command.

Hi,

It may help to say what type of installation, the operating environment and instructions being followed to install frappe-bench.

The environment is Ubuntu 22.04.3 LTS running in a DigitalOcean droplet

I was following the installation instructions for Ubuntu in
https://frappeframework.com/docs/user/en/installation

I was running “bench init frappe-bench”.

This is a super clear and straightforward guide to installing bench on Ubuntu 22.04 from Karani.