Internal Error: frappe-framework@workspace:.: This package doesn’t seem to be present in your lockfile; run “yarn install” to update the lockfile
at kk.getCandidates (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:205:8149)
at Pg.getCandidates (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:141:1311)
at /home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:210:8420
at Jm (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:140:53873)
at gt (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:210:8400)
at async Promise.allSettled (index 0)
at async Wc (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:140:53201)
at async /home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:210:9166
at async Ri.startProgressPromise (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:140:139272)
at async t.resolveEverything (/home/ubuntu/frappe-bench/apps/frappe/.yarn/releases/yarn-4.5.2.cjs:210:7138)
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 109, in
main()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 91, in build
bundle(mode, apps=apps, hard_link=hard_link, verbose=verbose, skip_frappe=skip_frappe)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/build.py”, line 256, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/init.py”, line 98, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command ‘yarn run production --run-build-command’ returned non-zero exit status 1.
(env) ubuntu@application-vm:~/frappe-bench$
try npm install -g yarn
inside bench