Setting Up Environment
$ python3 -m venv env
$ /home/techwithtwin/code/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/techwithtwin/code/frappe/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: 3288, done.
remote: Counting objects: 100% (3288/3288), done.
remote: Compressing objects: 100% (2858/2858), done.
remote: Total 3288 (delta 505), reused 1600 (delta 336), pack-reused 0 (from 0)
Receiving objects: 100% (3288/3288), 11.64 MiB | 5.97 MiB/s, done.
Resolving deltas: 100% (505/505), done.
Installing frappe
$ /home/techwithtwin/code/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/techwithtwin/code/frappe/frappe-bench/apps/frappe
$ yarn install --check-files
Unknown Syntax Error: Unsupported option name (“–check-files”).
$ yarn install [–json] [–immutable] [–immutable-cache] [–check-cache] [–inline-builds] [–mode #0]
subprocess.CalledProcessError: Command ‘yarn install --check-files’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/commands/make.py”, line 75, in init
init(
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/utils/system.py”, line 87, in init
get_app(
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/app.py”, line 777, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/app.py”, line 254, in install
install_app(
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/app.py”, line 920, in install_app
bench.run(yarn_install, cwd=app_path)
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/techwithtwin/code/frappe/frapp/lib/python3.12/site-packages/bench/utils/init.py”, line 178, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: yarn install --check-files
ERROR: There was a problem while creating frappe-bench