@niezbop
If I try to install a module that is not only available in macOS (in this case Universal-Windows-Platform) I get this error:
mac-build:/ jenkins$ u3d install 2019.2.12f1 -p Unity,Universal-Windows-Platform
error: undefined method `id' for nil:NilClass. Use --trace to view backtrace
If the name of a module doesn't exist, I get this other error:
mac-build:/ jenkins$ u3d install 2019.2.12f1 -p gdsgdsgd,jgsduijgdshugsd
error: undefined method `depends_on?' for nil:NilClass. Use --trace to view backtrace
Can you control the error and get a more descriptive message? This is important because not all versions of Unity have the same modules or they exist but with a different name.