$ bench init helpdesk --frappe-branch version-15
Setting Up Environment
$ python3 -m venv env
$ /home/erpnext/helpdesk/env/bin/python -m pip install --quiet --upgrade pip
$ /home/erpnext/helpdesk/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 --branch version-15 --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 3437, done.
remote: Counting objects: 100% (3437/3437), done.
remote: Compressing objects: 100% (3096/3096), done.
remote: Total 3437 (delta 413), reused 1594 (delta 224), pack-reused 0 (from 0)
Receiving objects: 100% (3437/3437), 21.47 MiB | 11.79 MiB/s, done.
Resolving deltas: 100% (413/413), done.
Installing frappe
$ /home/erpnext/helpdesk/env/bin/python -m pip install --quiet --upgrade -e /home/erpnext/helpdesk/apps/frappe
$ yarn install --check-files
yarn install v1.22.22
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
error Error: https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz: Request failed “304 Not Modified”
at ResponseError.ExtendableBuiltin (/home/erpnext/.nvm/versions/node/v23.4.0/lib/node_modules/yarn/lib/cli.js:696:66)
at new ResponseError (/home/erpnext/.nvm/versions/node/v23.4.0/lib/node_modules/yarn/lib/cli.js:802:124)
at Request. (/home/erpnext/.nvm/versions/node/v23.4.0/lib/node_modules/yarn/lib/cli.js:66750:16)
at Request.emit (node:events:513:28)
at module.exports.Request.onRequestResponse (/home/erpnext/.nvm/versions/node/v23.4.0/lib/node_modules/yarn/lib/cli.js:142287:10)
at ClientRequest.emit (node:events:513:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:710:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
at TLSSocket.socketOnData (node:_http_client:552:22)
at TLSSocket.emit (node:events:513:28)
info Visit yarn install | Yarn for documentation about this command.
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/erpnext/.local/lib/python3.10/site-packages/bench/commands/make.py”, line 75, in init
init(
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/utils/system.py”, line 87, in init
get_app(
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/app.py”, line 777, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/app.py”, line 254, in install
install_app(
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/app.py”, line 920, in install_app
bench.run(yarn_install, cwd=app_path)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/erpnext/.local/lib/python3.10/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 helpdesk
Do you want to rollback these changes? [y/N]: y
INFO: Rolling back Bench “helpdesk”