If you use Termux on Android as a real development environment, you eventually run into the same problem:

What happens when you get a new phone?

Your Termux environment may contain:

hundreds of installed packages

Python and Node.js environments