I ran this command
bench build --app cms
and get this error:
node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module '/Users/omit/frappe-bench-2/apps/cms/esbuild'
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at run_build_command_for_apps (/Users/omit/frappe-bench-2/apps/frappe/esbuild/esbuild.js:433:5)
at /Users/omit/frappe-bench-2/apps/frappe/esbuild/esbuild.js:88:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 71300,
stdout: null,
stderr: null
}
how i solve this error?