npm run build doesn’t recognize the “bootstrap” command

I recently upgraded my project to use Lerna v7, and when running the command npm run build, I encountered the following error:

enter image description here

Following the provided link, I realized that the “bootstrap” command is no longer supported by default in Lerna v7. The documentation suggests changes to the lerna.json file, but I’m still having difficulty fixing this issue.

Could someone guide me on how to adjust my project to address this specific error? I appreciate any help or insights you can provide.

Lerna Update: The project has been updated to Lerna version 7 as recommended. The error appeared after this update.

Reading the Documentation: The Lerna documentation was consulted, especially the section regarding changes in version 7. It was identified that the “bootstrap” command is no longer supported by default.