Setup problem when bench init frappe-bench and get ERROR: There was a problem while creating frappe-

Hi , i am using Ubuntu 24.04 and i am getting this error. Please help :frowning:

bench init frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /home/run-adm/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/run-adm/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 3271, done.
remote: Counting objects: 100% (3271/3271), done.
remote: Compressing objects: 100% (2768/2768), done.
remote: Total 3271 (delta 509), reused 1672 (delta 390), pack-reused 0
Receiving objects: 100% (3271/3271), 11.48 MiB | 4.34 MiB/s, done.
Resolving deltas: 100% (509/509), done.
Installing frappe
$ /home/run-adm/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/run-adm/frappe-bench/apps/frappe
$ yarn install --check-files
Traceback (most recent call last):
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/commands/”, line 75, in init
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/utils/”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/utils/”, line 87, in init
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/”, line 777, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/utils/”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/”, line 254, in install
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/”, line 920, in install_app, cwd=app_path)
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/run-adm/.local/lib/python3.12/site-packages/bench/utils/”, line 174, in exec_cmd
return_code =, cwd=cwd, universal_newlines=True, env=env)
File “/usr/lib/python3.12/”, line 389, in call
with Popen(*popenargs, **kwargs) as p:
File “/usr/lib/python3.12/”, line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.12/”, line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘yarn’

ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]:

hii @Runsist

Error indicates that the yarn module is not found. To resolve this, you need to install the yarn module first before trying to create a bench using bench init.

To install the yarn module, use the following command:

sudo yum install yarn

Manav , Thanks for your information;

run-adm@destek:~$ sudo yum install yarn
[sudo] password for run-adm:
sudo: yum: command not found

i am getting this error

i am using this one ;

I think now the installation has started