Error While building webconsole

Syntax Error: Unexpected end of JSON input
at JSON.parse ()
at installVersion (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:23060:31)
at async Engine.ensurePackageManager (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:23380:32)
at async executePackageManagerRequest (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:24236:23)
at async BinaryCommand.validateAndExecute (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:21173:22)
at async _Cli.run (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:22148:18)
at async Object.runMain (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:24279:12)
make: *** [Makefile:65: webconsole/bin/webconsole] Error 1

If I am running only make webconsole I am getting above error, but if I am getting sudo make webconsole then I getting error go not found, even though go version 1.21.8 is installed

error4.txt (1.4 KB)

Did you follow the webconsole installation steps outlined here: 3 install free5gc - free5GC?

yes all the points the is mention there

Please check your nodejs version is v20.x.