Using bench build following error occured

internal/modules/cjs/loader.js:583
throw err;
^

Error: Cannot find module ‘chalk’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/satish/workspace/frappe-bench/apps/frappe/rollup/build.js:3:15)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

yarn self-update might fix it

using this command following error

yarn run v1.9.4
error Couldn’t find a package.json file in “/home/satish/workspace/frappe-bench”
info Visit yarn run | Yarn for documentation about this command

you will find this package.json in frappe folder copy it and paste it in frappe-bench

ohk thanks root

Where is this frappe folder ?

@anjanesh

try bench setup requirements

then run bench build

this works for
Thank you

In my project root directory ?
frappe-bench
or
frappe-bench/apps/frappe

Normally this would work…

cd ~/frappe-bench
bench setup requirements
bench build