We have fixed the issue of Forge CLI version 5.0.0 installation or upgrade failing when running on npm 8. This issue has been resolved with the latest version of @forge/cli.
For more information about the issue, see the Atlassian developer’s status page.
Run npm install -g @forge/cli@latest on the command line to install the latest version of @forge/cli.
We have also added additional debugging logs when running forge tunnel --verbose.