Error installing changemaker in bench in Frappe Cloud

Hi, We have a frappe cloud subscription. We created a new bench with Frappe v14 and installed frappe changemaker application. We experienced two errors in the process:

  1. “Frappe must be the first app”
    This is a very weird error. I was able to solve by not selecting any application above frappe framework app in the list. I can share error screenshots of needed.
  2. Changemaker was not able to be deployed on the bench. Here’s the traceback error:

bench get-app changemakers
Getting changemakers
$ git clone file:///home/frappe/context/apps/changemakers --depth 1 --origin upstream
Cloning into ‘changemakers’…
Ignoring dependencies of file:///home/frappe/context/apps/changemakers. To install dependencies use --resolve-deps
Installing changemakers
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/changemakers
$ yarn install
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
[4/4] Building fresh packages…
$ cd frontend && yarn install
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages…
[2/4] Fetching packages…
error @capacitor-community/file-opener@1.0.4: The engine “node” is incompatible with this module. Expected version “>=16.0.0”. Got “14.19.0”
error Found incompatible module.
info Visit yarn install | Yarn for documentation about this command.
error Command failed with exit code 1.
info Visit yarn install | Yarn for documentation about this command.
ERROR:
Traceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/commands/make.py”, line 159, in get_app
get_app(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/app.py”, line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/app.py”, line 242, in install
install_app(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/app.py”, line 581, in install_app
bench.run(“yarn install”, cwd=app_path)
File “/home/frappe/.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/frappe/.local/lib/python3.10/site-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
INFO: A newer version of bench is available: 5.15.2 → 5.17.2
executor failed running [/bin/sh -c bench get-app file:///home/frappe/context/apps/changemakers #stage-apps-changemakers]: exit code: 1

[stage-0 28/32] RUN --mount=type=cache,target=/home/frappe/.cache,uid=1000,gid=1000 --mount=type=bind,source=apps/changemakers,target=/home/frappe/context/apps/changemakers bench get-app file:///home/frappe/context/apps/changemakers #stage-apps-changemakers:
executor failed running [/bin/sh -c bench get-app file:///home/frappe/context/apps/changemakers #stage-apps-changemakers]: exit code: 1

Please let me know if I can follow steps that I can take or I need to post it on github. Thanks

1 Like